A fresh context allows selective modification of its attributes using the with... methods.
Attributes
- Companion
- object
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
A map in which more contextual properties can be stored Typically used for attributes that are read and written only in special situations.
A map in which more contextual properties can be stored Typically used for attributes that are read and written only in special situations.
Attributes
Reuse this context as a fresh context nested inside outer
But keep the typerstate, this one has to be set explicitly if needed.
Reuse this context as a fresh context nested inside outer
But keep the typerstate, this one has to be set explicitly if needed.
Attributes
A store that can be used by sub-components. Typically used for attributes that are defined only once per compilation unit. Access to store entries is much faster than access to properties, and only slightly slower than a normal field access would be.
A store that can be used by sub-components. Typically used for attributes that are defined only once per compilation unit. Access to store entries is much faster than access to properties, and only slightly slower than a normal field access would be.
Attributes
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
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
The Zinc callback implementation if we are run from Zinc, null otherwise
The Zinc callback implementation if we are run from Zinc, null otherwise
Attributes
- Inherited from:
- Context
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
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 Zinc compile progress callback implementation if we are run from Zinc, null otherwise
The Zinc compile progress callback implementation if we are run from Zinc, null otherwise
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
The current compiler-run
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
The current settings values
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
Should use colors when printing?
Is the verbose option set?
Attributes
- Inherited from:
- Context
Run op
if there exists an incremental callback
Run op
if there exists a Zinc progress callback
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
Givens
Inherited givens
Attributes
- Inherited from:
- Context