FreshContext
A fresh context allows selective modification of its attributes using the with... methods.
Attributes
- Graph
- Supertypes
Members list
Value members
Inherited methods
The current compilation unit
The compiler callback implementation, or null if no callback will be called.
The compiler callback implementation, or null if no callback will be called.
Attributes
- Inherited from:
- Context
Is the debug option set?
Attributes
- Inherited from:
- Context
Either the current scope, or, if the current context owner is a class, the declarations of the current class.
Either the current scope, or, if the current context owner is a class, the declarations of the current class.
Attributes
- Inherited from:
- Context
Does current phase use an erased types interpretation?
Is the explicit nulls option set?
The context of expression expr
seen as a member of a statement sequence
The context of expression expr
seen as a member of a statement sequence
Attributes
- Inherited from:
- Context
A fresh clone of this context embedded in this context.
A fresh clone of this context embedded in the specified outer
context.
A fresh clone of this context embedded in the specified outer
context.
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
AbstractFile with given path, memoized
AbstraFile with given path name, memoized
SourceFile with given path, memoized
SourceFile with given path name, memoized
Sourcefile corresponding to given abstract file, memoized
Attributes
- Inherited from:
- Context
A new context that summarizes an import statement
The currently active import info
Attributes
- Inherited from:
- Context
Is current phase after TyperPhase?
Is this a context for the members of a class definition?
Is this a context that introduces an import clause?
Is this a context for typechecking an inlined body?
Are we in a Java compilation unit?
Is this a context that introduces a non-empty scope?
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
The paths currently known to be not null
All outer contexts, ending in base.initialCtx
and then NoContext
Attributes
- Inherited from:
- Context
A function creating a printer
The current plain printer
The current compiler-run profiler
The current compiler-run
The sbt callback implementation if we are run from sbt, null otherwise
The sbt callback implementation if we are run from sbt, null otherwise
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
The current settings values
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
The context for a supercall. This context is used for elaborating the parents of a class and their arguments. The context is computed from the current class context. It has
The context for a supercall. This context is used for elaborating the parents of a class and their arguments. The context is computed from the current class context. It has
- as owner: The primary constructor of the class
- as outer context: The context enclosing the class context
- as scope: The parameter accessors in the class context
The reasons for this peculiar choice of attributes are as follows:
- The constructor must be the owner, because that's where any local methods or closures should go.
- The context may not see any class members (inherited or defined), and should instead see definitions defined in the outer context which might be shadowed by such class members. That's why the outer context must be the outer context of the class.
- At the same time the context should see the parameter accessors of the current class, that's why they get added to the local scope. An alternative would have been to have the context see the constructor parameters instead, but then we'd need a final substitution step from constructor parameters to class parameter accessors.
Attributes
- Inherited from:
- Context
The context for the arguments of a this(...) constructor call. The context is computed from the local auxiliary constructor context. It has
The context for the arguments of a this(...) constructor call. The context is computed from the local auxiliary constructor context. It has
- as owner: The auxiliary constructor
- as outer context: The context enclosing the enclosing class context
- as scope: The parameters of the auxiliary constructor.
Attributes
- Inherited from:
- Context
The current type assigner or typer
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
Should use colors when printing?
Is the verbose option set?
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
Inherited fields
The new implicit references that are introduced by this scope
Givens
Inherited givens
Attributes
- Inherited from:
- Context