ReifiedReflect

dotty.tools.dotc.transform.ReifiedReflect

Helper methods to construct trees calling methods in Quotes.reflect based on the current quotes tree

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

Stable reference to the instance of scala.quoted.Quotes

Stable reference to the instance of scala.quoted.Quotes

Attributes

Concrete methods

def Apply(fn: Tree, args: List[Tree])(using Context): Apply

Create tree for quotes.reflect.Apply(<fn>, List(<args>*))

Create tree for quotes.reflect.Apply(<fn>, List(<args>*))

Attributes

def Assign(lhs: Tree, rhs: Tree)(using Context): Apply

Create tree for quotes.reflect.Assing(<lhs>, <rhs>)

Create tree for quotes.reflect.Assing(<lhs>, <rhs>)

Attributes

def Inferred(typeTree: Tree)(using Context): Apply

Create tree for quotes.reflect.Inferred(<typeTree>)

Create tree for quotes.reflect.Inferred(<typeTree>)

Attributes

def Literal(constant: Tree)(using Context): Apply

Create tree for quotes.reflect.Literal(<constant>)

Create tree for quotes.reflect.Literal(<constant>)

Attributes

def TermTpt(using Context): Select

Create type for quotes.reflect.Term

Create type for quotes.reflect.Term

Attributes

def TypeApply(fn: Tree, args: List[Tree])(using Context): Apply

Create tree for quotes.reflect.TypeApply(<fn>, List(<args>*))

Create tree for quotes.reflect.TypeApply(<fn>, List(<args>*))

Attributes

def TypeReprOf(tpe: Type)(using Context): Apply

Create tree for quotes.reflect.TypeRepr.of(Type.of[<tpe>](quotes))

Create tree for quotes.reflect.TypeRepr.of(Type.of[<tpe>](quotes))

Attributes

Create tree for quotes.reflect.TypeRepr.typeConstructorOf(<classTree>)

Create tree for quotes.reflect.TypeRepr.typeConstructorOf(<classTree>)

Attributes

Create type for quotes.reflect.TypeTree

Create type for quotes.reflect.TypeTree

Attributes

def asExpr(tpe: Type)(term: Tree)(using Context): Tree

Create tree for quotes.reflect.TreeMethods.asExpr(<term>).asInstanceOf[<tpe>]

Create tree for quotes.reflect.TreeMethods.asExpr(<term>).asInstanceOf[<tpe>]

Attributes

def asTerm(expr: Tree)(using Context): Apply

Create tree for quotes.reflect.asTerm(<expr>)

Create tree for quotes.reflect.asTerm(<expr>)

Attributes

def asType(tpe: Type)(typeRepr: Tree)(using Context): Tree

Create tree for quotes.reflect.TypeReprMethods.asType(<typeRepr>)

Create tree for quotes.reflect.TypeReprMethods.asType(<typeRepr>)

Attributes

def self(using Context): Tree