RefModule
trait RefModule
Methods of the module object val Ref
- Source
- Quotes.scala
Value members
Abstract methods
Create a reference tree from a symbol
Create a reference tree from a symbol
If sym
refers to a class member foo
in class C
,
returns a tree representing C.this.foo
.
If sym
refers to a local definition foo
, returns
a tree representing foo
.
- Note
In both cases, the constructed tree should only be spliced into the places where such accesses make sense. For example, it is incorrect to have
C.this.foo
outside the class body ofC
, or havefoo
outside the lexical scope for the definition offoo
.- Source
- Quotes.scala
A tree representing the same reference as the given type
A tree representing the same reference as the given type
- Source
- Quotes.scala