|
Scala example source code file (FrontEnds.scala)
The FrontEnds.scala Scala example source code
package scala.reflect.macros
package contexts
import scala.reflect.macros.runtime.AbortMacroException
trait FrontEnds {
self: Context =>
def echo(pos: Position, msg: String): Unit = universe.reporter.echo(pos, msg)
def info(pos: Position, msg: String, force: Boolean): Unit = universe.reporter.info(pos, msg, force)
def hasWarnings: Boolean = universe.reporter.hasErrors
def hasErrors: Boolean = universe.reporter.hasErrors
def warning(pos: Position, msg: String): Unit = callsiteTyper.context.warning(pos, msg)
def error(pos: Position, msg: String): Unit = callsiteTyper.context.error(pos, msg)
def abort(pos: Position, msg: String): Nothing = throw new AbortMacroException(pos, msg)
}
Other Scala source code examplesHere is a short list of links related to this Scala FrontEnds.scala source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.