Macros

sourcecode.Macros
object Macros

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Macros.type

Members list

Type members

Classlikes

object Chunk

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Chunk.type
sealed trait Chunk

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class ClsTrt
class PkgObj
class ValVarLzyDef

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.

Attributes

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