trait RefModule

Methods of the module object val Ref

class Object
trait Matchable
class Any

Value members

Abstract methods

def apply(sym: Symbol): Ref

Create a reference tree from a symbol

If sym refers to a class member foo in class C, returns a tree representing

If sym refers to a local definition foo, returns a tree representing foo.


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 outside the class body of C, or have foo outside the lexical scope for the definition of foo.

def term(tp: TermRef): Ref

A tree representing the same reference as the given type