dotty.tools.dotc.config.Printers.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala3-compiler_3 Show documentation
Show all versions of scala3-compiler_3 Show documentation
scala3-compiler-bootstrapped
package dotty.tools.dotc
package config
import core.Contexts.{Context, ctx}
object Printers {
class Printer {
def println(msg: => String): Unit = System.out.nn.println(msg)
}
object noPrinter extends Printer {
inline override def println(msg: => String): Unit = ()
}
val default = new Printer
/** Enabled via Ycc-log flag. This is not super-efficient but helps debug
* variants of capture checking faster.
* TODO: Revert to static scheme once capture checking has stabilized
*/
def capt(using Context): Printer =
if ctx.settings.YccLog.value then captActive else noPrinter
val captActive = new Printer
def captDebug(using Context): Printer =
if ctx.settings.YccDebug.value then captDebugActive else noPrinter
val captDebugActive = new Printer
val constr = noPrinter
val core = noPrinter
val checks = noPrinter
val config = noPrinter
val cyclicErrors = noPrinter
val debug = noPrinter
val derive = noPrinter
val desugar = noPrinter
val scaladoc = noPrinter
val exhaustivity = noPrinter
val gadts = noPrinter
val gadtsConstr = noPrinter
val hk = noPrinter
val implicits = noPrinter
val implicitsDetailed = noPrinter
val lexical = noPrinter
val init = noPrinter
val inlining = noPrinter
val interactiv = noPrinter
val macroAnnot = noPrinter
val matchTypes = noPrinter
val nullables = noPrinter
val overload = noPrinter
val patmatch = noPrinter
val pickling = noPrinter
val quotePickling = noPrinter
val plugins = noPrinter
val recheckr = noPrinter
val refcheck = noPrinter
val simplify = noPrinter
val staging = noPrinter
val subtyping = noPrinter
val tailrec = noPrinter
val transforms = noPrinter
val typr = noPrinter
val unapp = noPrinter
val variances = noPrinter
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy