ReifiedReflect

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

class Object
trait Matchable
class Any

Value members

Abstract methods

Stable reference to the instance of scala.quoted.Quotes

Stable reference to the instance of scala.quoted.Quotes

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

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

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

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

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

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

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

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

def TermTpt(using Context): Select

Create type for quotes.reflect.Term

Create type for quotes.reflect.Term

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

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

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

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

Create type for quotes.reflect.TypeTree

Create type for quotes.reflect.TypeTree

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

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

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

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

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

def self(using Context): Tree