ParsedLogicalPackage

dotty.tools.dotc.interactive.ParsedLogicalPackage
See theParsedLogicalPackage companion object
class ParsedLogicalPackage(val name: String, val parent: Option[ParsedLogicalPackage]) extends LogicalPackage

Represent a package and its contents in a way that's close to the file system.

A package contains any number of nested packages and source files. It is mutable in order to allow adding members at any level, as they are discovered by parsing source files.

Value parameters

name

simple name of the package

Attributes

Note

This class is not thread safe

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Constructors

def this(name: String, parent: ParsedLogicalPackage)

Concrete methods

Return the existing member package, or create a new one and add it to this package.

Return the existing member package, or create a new one and add it to this package.

Attributes

def enterSource(fileName: String): this.type

Return all member packages. Only direct members are returned.

Return all member packages. Only direct members are returned.

Attributes

Return all sources contained by this package. Only direct members are returned, and there are no duplicates.

Return all sources contained by this package. Only direct members are returned, and there are no duplicates.

The return type is a sequence and not a Set in order to have deterministic runs

Attributes

override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

Attributes

Inherited from:
LogicalPackage

Concrete fields

val name: String