Packages

trait FrontEnds extends AnyRef

EXPERIMENTAL

A slice of the Scala macros context that provides facilities to communicate with the compiler's front end (emit warnings, errors and other sorts of messages).

Self Type
blackbox.Context
Source
FrontEnds.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FrontEnds
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def abort(pos: blackbox.Context.Position, msg: String): Nothing

    Abruptly terminates current macro expansion leaving a note about what happened.

    Abruptly terminates current macro expansion leaving a note about what happened. Use enclosingPosition if you're in doubt what position to pass to pos.

  2. abstract def echo(pos: blackbox.Context.Position, msg: String): Unit

    For sending a message which should not be labelled as a warning/error, but also shouldn't require -verbose to be visible.

    For sending a message which should not be labelled as a warning/error, but also shouldn't require -verbose to be visible. Use enclosingPosition if you're in doubt what position to pass to pos.

  3. abstract def error(pos: blackbox.Context.Position, msg: String): Unit

    Emits a compilation error.

    Emits a compilation error. Use enclosingPosition if you're in doubt what position to pass to pos.

  4. abstract def hasErrors: Boolean

    Does the compilation session have any errors?

  5. abstract def hasWarnings: Boolean

    Does the compilation session have any warnings?

  6. abstract def info(pos: blackbox.Context.Position, msg: String, force: Boolean): Unit

    Emits an informational message, suppressed unless -verbose or force=true.

    Emits an informational message, suppressed unless -verbose or force=true. Use enclosingPosition if you're in doubt what position to pass to pos.

  7. abstract def warning(pos: blackbox.Context.Position, msg: String): Unit

    Emits a warning.

    Emits a warning. Use enclosingPosition if you're in doubt what position to pass to pos.