org.scalameta.UnreachableMacros.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common_2.11 Show documentation
Show all versions of common_2.11 Show documentation
Bag of private and public helpers used in scala.meta's APIs and implementations
package org.scalameta
import org.scalameta.internal.MacroHelpers
import scala.reflect.macros.blackbox.Context
class UnreachableMacros(val c: Context) extends MacroHelpers {
import c.universe._
def unreachable: c.Tree = q"$UnreachableErrorModule.raise(${Map.empty[String, Tree]})"
def unreachableWithDebug(dsl: c.Tree): c.Tree =
q"$UnreachableErrorModule.raise(${debuggees(dsl)})"
def unreachableWithDebugAndClue(dsl: c.Tree, clue: c.Tree): c.Tree =
q"$UnreachableErrorModule.raise(${debuggees(dsl)}, $clue)"
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy