reportModule

scala.quoted.Quotes.reflectModule.reportModule
trait reportModule

Methods of the module object val report.

Attributes

Source
Quotes.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Quotes.this.reflectModule.this.report.type

Members list

Value members

Abstract methods

def error(msg: String): Unit

Report an error at the position of the macro expansion.

Report an error at the position of the macro expansion.

Value parameters

msg

the message text to report

Attributes

Source
Quotes.scala
def error(msg: String, expr: Expr[Any]): Unit

Report an error at the position of expr.

Report an error at the position of expr.

Value parameters

expr

the expression whose position is used for reporting

msg

the message text to report

Attributes

Source
Quotes.scala
def error(msg: String, pos: Quotes.this.reflectModule.this.Position): Unit

Report an error message at the given position.

Report an error message at the given position.

Value parameters

msg

the message text to report

pos

the position at which to report the message

Attributes

Source
Quotes.scala

Report an error at the position of the macro expansion and throw a StopMacroExpansion.

Report an error at the position of the macro expansion and throw a StopMacroExpansion.

Value parameters

msg

the message text to report

Attributes

Source
Quotes.scala
def errorAndAbort(msg: String, expr: Expr[Any]): Nothing

Report an error at the position of expr and throw a StopMacroExpansion.

Report an error at the position of expr and throw a StopMacroExpansion.

Value parameters

expr

the expression whose position is used for reporting

msg

the message text to report

Attributes

Source
Quotes.scala

Report an error message at the given position and throw a StopMacroExpansion.

Report an error message at the given position and throw a StopMacroExpansion.

Value parameters

msg

the message text to report

pos

the position at which to report the message

Attributes

Source
Quotes.scala
def info(msg: String): Unit

Report an info at the position of the macro expansion.

Report an info at the position of the macro expansion.

Value parameters

msg

the message text to report

Attributes

Source
Quotes.scala
def info(msg: String, expr: Expr[Any]): Unit

Report an info message at the position of expr.

Report an info message at the position of expr.

Value parameters

expr

the expression whose position is used for reporting

msg

the message text to report

Attributes

Source
Quotes.scala
def info(msg: String, pos: Quotes.this.reflectModule.this.Position): Unit

Report an info message at the given position.

Report an info message at the given position.

Value parameters

msg

the message text to report

pos

the position at which to report the message

Attributes

Source
Quotes.scala
def warning(msg: String): Unit

Report a warning at the position of the macro expansion.

Report a warning at the position of the macro expansion.

Value parameters

msg

the message text to report

Attributes

Source
Quotes.scala
def warning(msg: String, expr: Expr[Any]): Unit

Report a warning at the position of expr.

Report a warning at the position of expr.

Value parameters

expr

the expression whose position is used for reporting

msg

the message text to report

Attributes

Source
Quotes.scala
def warning(msg: String, pos: Quotes.this.reflectModule.this.Position): Unit

Report a warning message at the given position.

Report a warning message at the given position.

Value parameters

msg

the message text to report

pos

the position at which to report the message

Attributes

Source
Quotes.scala

Deprecated methods

Report an error at the position of the macro expansion and throw a StopMacroExpansion.

Report an error at the position of the macro expansion and throw a StopMacroExpansion.

Attributes

Deprecated
[Since version 3.1.0] Use errorAndAbort
Source
Quotes.scala
def throwError(msg: String, expr: Expr[Any]): Nothing

Report an error at the position of expr and throw a StopMacroExpansion.

Report an error at the position of expr and throw a StopMacroExpansion.

Attributes

Deprecated
[Since version 3.1.0] Use errorAndAbort
Source
Quotes.scala
def throwError(msg: String, pos: Quotes.this.reflectModule.this.Position): Nothing

Report an error message at the given position and throw a StopMacroExpansion.

Report an error message at the given position and throw a StopMacroExpansion.

Attributes

Deprecated
[Since version 3.1.0] Use errorAndAbort
Source
Quotes.scala