Dotty Documentation

0.18.0-bin-SNAPSHOT

class QuoteContext
extends Object

Quotation context provided by a macro expansion or in the scope of scala.quoted.run. Used to perform all operations on quoted Expr or Type.

It contains the low-level Typed AST API tasty meta-programming API. This API does not have the static type guarantiees that Expr and Type provide.

[-] Constructors

QuoteContext ( tasty: Reflection )
QuoteContext ( )

[-] Members

[+] val tasty : Reflection
[+] def clone ( ) : Object
[+] def eq ( x$0: Object ) : Boolean
[+] def error ( msg: => String ) : Unit

Report an error

[+] def error ( msg: => String , expr: Expr [ Nothing <: Any ] ) : Unit

Report an error at the on the position of expr

[+] def finalize ( ) : Unit
[+] def ne ( x$0: Object ) : Boolean
[+] def notify ( ) : Unit
[+] def notifyAll ( ) : Unit
[+] def show ( expr: Expr [ Nothing <: Any ] , syntaxHighlight: SyntaxHighlight ) : String
[+] def show ( tpe: Type [ Nothing <: AnyKind ] , syntaxHighlight: SyntaxHighlight ) : String
[+] def show ( syntaxHighlight: SyntaxHighlight ) ( implicit qctx: QuoteContext ) : String

Show a source code like representation of this type

[+] def show ( implicit qctx: QuoteContext ) : String

Show a source code like representation of this type without syntax highlight

[+] def synchronized ( x$0: X0 ) : X0
[+] def wait ( x$0: Long , x$1: Int ) : Unit
[+] def wait ( ) : Unit
[+] def wait ( x$0: Long ) : Unit
[+] def warning ( msg: => String ) : Unit

Report a warning

[+] def warning ( msg: => String , expr: Expr [ Nothing <: Any ] ) : Unit

Report a warning at the on the position of expr