Ref

oxygen.meta.Meta.Tree.Statement.Term.Ref
See theRef companion trait
object Ref

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Ref.type

Members list

Type members

Classlikes

object Ident

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Ident.type
sealed trait Ident extends Ref

Attributes

Companion
object
Supertypes
trait Ref
trait Term
trait Statement
trait Tree
class Object
trait Matchable
class Any
Show all
Known subtypes
class Other
class Wildcard
final case class Select(raw: quotes.reflect.Select) extends Ref

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Ref
trait Term
trait Statement
trait Tree
class Object
trait Matchable
class Any
Show all
object Select

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Select.type

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(raw: quotes.reflect.Ref): Ref
def apply(sym: Symbol): Ref

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.

Attributes

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 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

A tree representing the same reference as the given type

Attributes