trace

dotty.tools.dotc.reporting.trace
object trace extends TraceSyntax

Exposes the

 trace("question") { op } 

syntax.

Traced operations will print indented messages if enabled. Tracing depends on Config.tracingEnabled and dotty.tools.dotc.config.ScalaSettings.Ylog. Tracing can be forced by replacing trace with trace.force or trace.log (see below).

Attributes

Graph
Supertypes
trait TraceSyntax
class Object
trait Matchable
class Any
Self type
trace.type

Members list

Type members

Classlikes

object force extends TraceSyntax

Attributes

Supertypes
trait TraceSyntax
class Object
trait Matchable
class Any
Self type
force.type
object log extends TraceSyntax

Attributes

Supertypes
trait TraceSyntax
class Object
trait Matchable
class Any
Self type
log.type

Value members

Concrete methods

inline def isEnabled: Boolean

Inherited methods

inline def apply[T](inline question: String)(inline op: T)(using Context): T

Attributes

Inherited from:
TraceSyntax
inline def apply[T](inline question: String, inline show: Boolean)(inline op: T)(using Context): T

Attributes

Inherited from:
TraceSyntax
inline def apply[T](inline question: String, inline printer: Printer)(inline op: T)(using Context): T

Attributes

Inherited from:
TraceSyntax
inline def apply[T](inline question: String, inline printer: Printer, inline show: Boolean)(inline op: T)(using Context): T

Attributes

Inherited from:
TraceSyntax
inline def apply[T, U >: T](inline question: String, inline printer: Printer, inline showOp: U => String)(inline op: T)(using Context): T

Attributes

Inherited from:
TraceSyntax
inline def conditionally[TC](inline cond: Boolean, inline question: String, inline show: Boolean)(inline op: TC)(using Context): TC

Attributes

Inherited from:
TraceSyntax
inline def onDebug[TD](inline question: String)(inline op: TD)(using Context): TD

Attributes

Inherited from:
TraceSyntax