OwnerTree

class OwnerTree(val addr: Addr, tag: Int, reader: TreeReader, val end: Addr)

A lazy datastructure that records how definitions are nested in TASTY data. The structure is lazy because it needs to be computed only for forward references to symbols that happen before the referenced symbol is created (see symbolAt). Such forward references are rare.

Value Params
addr

The address of tree representing an owning definition, NoAddr for root tree

end

The end of the owning definition

reader

The reader to be used for scanning for children

tag

The tag at addr. Used to determine which subtrees to scan for children (i.e. if tag is template, don't scan member defs, as these belong already to enclosing class).

class Object
trait Matchable
class Any

Value members

Concrete methods

All definitions that have the definition at addr as closest enclosing definition

All definitions that have the definition at addr as closest enclosing definition

def findOwner(addr: Addr)(using Context): Symbol

Find the owner of definition at addr

Find the owner of definition at addr

override def toString: String
Definition Classes
Any

Concrete fields

val addr: Addr
val end: Addr