OfArray

dotty.tools.dotc.transform.init.Objects.OfArray
case class OfArray(owner: ClassSymbol, regions: Data)(using ctx: Context) extends Ref

Represents arrays.

Note that the 2nd parameter block does not take part in the definition of equality.

Different arrays are distinguished by the context. Currently the default context is the static object whose initialization triggers the creation of the array.

In the future, it is possible that we introduce a mechanism for end-users to mark the context.

Value parameters

owner

The static object whose initialization creates the array.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Ref
class Value
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def show(using Context): String

Inherited methods

Attributes

Inherited from:
Ref
def hasVal(sym: Symbol): Boolean

Attributes

Inherited from:
Ref
def hasVar(sym: Symbol): Boolean

Attributes

Inherited from:
Ref
def initOuter(cls: ClassSymbol, value: Value)(using Context): Unit

Attributes

Inherited from:
Ref
def initVal(field: Symbol, value: Value)(using Context): Unit

Attributes

Inherited from:
Ref
def initVar(field: Symbol, addr: Addr)(using Context): Unit

Attributes

Inherited from:
Ref

Attributes

Inherited from:
Ref

Attributes

Inherited from:
Ref

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def valValue(sym: Symbol): Value

Attributes

Inherited from:
Ref
def varAddr(sym: Symbol): Addr

Attributes

Inherited from:
Ref

Concrete fields

val addr: Addr

Inherited fields

protected val outers: Map[ClassSymbol, Value]

Attributes

Inherited from:
Ref
protected val vals: Map[Symbol, Value]

Attributes

Inherited from:
Ref
protected val vars: Map[Symbol, Addr]

Attributes

Inherited from:
Ref