blob: 21147fe6fa86c461a49b27a8bccbe3640784e982 (
plain) (
tree)
|
|
package dotty.tools.dotc.config
object Printers {
class Printer {
def println(msg: => String): Unit = System.out.println(msg)
def echo[T](msg: => String, value: T): T = { println(msg + value); value }
}
object noPrinter extends Printer {
override def println(msg: => String): Unit = ()
override def echo[T](msg: => String, value: T): T = value
}
val default: Printer = new Printer
val core: Printer = noPrinter
val typr: Printer = noPrinter
val constr: Printer = noPrinter
val checks: Printer = noPrinter
val overload: Printer = noPrinter
val implicits: Printer = noPrinter
val implicitsDetailed: Printer = noPrinter
val subtyping: Printer = noPrinter
val unapp: Printer = noPrinter
val gadts: Printer = noPrinter
val hk: Printer = noPrinter
val variances: Printer = noPrinter
val incremental: Printer = noPrinter
val config: Printer = noPrinter
val transforms: Printer = noPrinter
val completions: Printer = noPrinter
val cyclicErrors: Printer = noPrinter
val pickling: Printer = noPrinter
}
|