All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.meta.internal.parsers.Reporter.scala Maven / Gradle / Ivy

The newest version!
package scala.meta
package internal
package parsers

import scala.meta.inputs._
import scala.meta.parsers._
import scala.meta.tokens._

trait Reporter {
  def deprecationWarning(msg: String, at: Position): Unit = ()
  def deprecationWarning(msg: String, at: Token): Unit = deprecationWarning(msg, at.pos)
  def deprecationWarning(msg: String, at: Tree): Unit = deprecationWarning(msg, at.pos)
  def syntaxWarning(msg: String, at: Position): Unit = ()
  def syntaxWarning(msg: String, at: Token): Unit = syntaxWarning(msg, at.pos)
  def syntaxWarning(msg: String, at: Tree): Unit = syntaxWarning(msg, at.pos)
  def syntaxError(msg: String, at: Position): Nothing = throw new ParseException(at, msg)
  def syntaxError(msg: String, at: Token): Nothing = syntaxError(msg, at.pos)
  def syntaxError(msg: String, at: Tree): Nothing = syntaxError(msg, at.pos)
}

object Reporter {
  def apply() = new Reporter {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy