EnvRef

dotty.tools.dotc.transform.init.Objects.Env.EnvRef
case class EnvRef(tree: Tree, owner: ClassSymbol)(using x$3: Trace) extends Scope

Represents environments for evaluating methods, functions, or lazy/by-name values For methods or closures, tree is the DefDef of the method. For lazy/by-name values, tree is the rhs of the definition or the argument passed to by-name param

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Objects.this.Scope
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def equals(that: Any): Boolean

Checks whether this instance is equal to that. This universal equality method is defined in AnyRef.

Checks whether this instance is equal to that. This universal equality method is defined in AnyRef.

Attributes

Definition Classes
Equals -> Any
def initOuterEnvs(outerEnvs: EnvSet)(using EnvMapMutableData): Unit
def initThisV(thisV: Objects.this.ThisValue)(using EnvMapMutableData): Unit
def initVal(field: Symbol, value: Objects.this.Value)(using Context, EnvMapMutableData): Unit
def initVar(field: Symbol, value: Objects.this.Value)(using Context, EnvMapMutableData): Unit
def show(using Context): String
def valValue(sym: Symbol)(using EnvMapMutableData): Objects.this.Value
def varValue(sym: Symbol)(using EnvMapMutableData): Objects.this.Value

Inherited methods

def asEnv: EnvRef

Attributes

Inherited from:
Scope
def asRef: Objects.this.Ref

Attributes

Inherited from:
Scope

Attributes

Inherited from:
Scope
def isEnv: Boolean

Attributes

Inherited from:
Scope
def isRef: Boolean

Attributes

Inherited from:
Scope

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product