Ref

dotty.tools.dotc.transform.init.Objects.Ref
sealed abstract class Ref(valsMap: Map[Symbol, Value], varsMap: Map[Symbol, Addr], outersMap: Map[ClassSymbol, Value]) extends ValueElement

A reference caches the values for outers and immutable fields.

Attributes

Graph
Supertypes
class ValueElement
class Value
class Object
trait Matchable
class Any
Known subtypes
class ObjectRef
class OfClass

Members list

Value members

Abstract methods

Concrete methods

def hasVal(sym: Symbol): Boolean
def hasVar(sym: Symbol): Boolean
def initOuter(cls: ClassSymbol, value: Value)(using Context): Unit
def initVal(field: Symbol, value: Value)(using Context): Unit
def initVar(field: Symbol, addr: Addr)(using Context): Unit
def valValue(sym: Symbol): Value
def varAddr(sym: Symbol): Addr

Inherited and Abstract methods

def show(using Context): String

Attributes

Inherited from:
Value

Concrete fields

protected val outers: Map[ClassSymbol, Value]
protected val vals: Map[Symbol, Value]
protected val vars: Map[Symbol, Addr]