Macros

object Macros
class Object
trait Matchable
class Any
Macros.type

Type members

Classlikes

object Chunk
Companion:
class
sealed trait Chunk
Companion:
object

Value members

Concrete methods

def actualOwner(using Quotes)(owner: Symbol): Symbol
def argsImpl(using qctx: Quotes): Expr[Args]
def enclosing(using Quotes)(machine: Boolean)(filter: Symbol => Boolean): String
def enclosingImpl(using Quotes): Expr[Enclosing]
def enclosingMachineImpl(using Quotes): Expr[Machine]
def fileImpl(using Quotes): Expr[File]
def fileNameImpl(using Quotes): Expr[FileName]
def findOwner(using Quotes)(owner: Symbol, skipIf: Symbol => Boolean): Symbol
def fullNameImpl(using Quotes): Expr[FullName]
def fullNameMachineImpl(using Quotes): Expr[Machine]
def lineImpl(using Quotes): Expr[Line]
def nameImpl(using Quotes): Expr[Name]
def nameMachineImpl(using Quotes): Expr[Machine]
def nonMacroOwner(using Quotes)(owner: Symbol): Symbol

In Scala 3, macro mcr() is expanded to:

In Scala 3, macro mcr() is expanded to:

val macro = ... macro

Where n is an ordinal. This method returns the first owner that is not such a synthetic variable.

def pkgImpl(using Quotes): Expr[Pkg]
def text[T : Type](v: Expr[T])(implicit evidence$2: Type[T], Quotes): Expr[Text[T]]