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

org.scalameta.UnreachableMacros.scala Maven / Gradle / Ivy

Go to download

Bag of private and public helpers used in scala.meta's APIs and implementations

There is a newer version: 4.12.2
Show newest version
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