Env

dotty.tools.dotc.cc.CheckCaptures.Env
class Env(val owner: Symbol, val kind: EnvKind, val captured: CaptureSet, val outer0: Env | Null, val nestedClosure: Symbol = ...)(using ictx: Context)

A class describing environments.

Value parameters

captured

the capture set containing all references to tracked free variables outside of boxes

kind

the environment's kind

nestedClosure

under deferredReaches: If this is an env of a method with an anonymous function or anonymous class as RHS, the symbol of that function or class. NoSymbol in all other cases.

outer0

the next enclosing environment

owner

the current owner

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def isRoot(using Context): Boolean
def outer: Env

Concrete fields

val kind: EnvKind
val outer0: Env | Null
val owner: Symbol