Methods of the module objectval Ref
Create a reference tree from a symbol
Create a reference tree from a symbol
Ifsym refers to a class memberfoo in classC, returns a tree representingC.this.foo.
Ifsym refers to an object memberfoo in object C, itself in prefixpre (which might include.this, if it contains a class), returnspre.C.foo.
Ifsym refers to a local definitionfoo, returns a tree representingfoo.
In all cases, the constructed tree should only be spliced into the places where such accesses make sense. For example, it is incorrect to haveC.this.foo outside the class body ofC, or havefoo outside the lexical scope for the definition offoo.
A tree representing the same reference as the given type