File tree Expand file tree Collapse file tree 1 file changed +7
-15
lines changed
compiler/src/dotty/tools/dotc/reporting Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -7,21 +7,6 @@ import config.Config
7
7
import config .Printers
8
8
import core .Mode
9
9
10
- /** Exposes the {{{ trace("question") { op } }}} syntax.
11
- *
12
- * Traced operations will print indented messages if enabled.
13
- * Tracing depends on [[Config.tracingEnabled ]] and [[dotty.tools.dotc.config.ScalaSettings.Ylog ]].
14
- * Tracing can be forced by replacing [[trace ]] with [[trace.force ]] (see below).
15
- */
16
- object trace extends TraceSyntax {
17
- final val isForced = false
18
-
19
- /** Forces a particular trace to be printed out regardless of tracing being enabled. */
20
- object force extends TraceSyntax {
21
- final val isForced = true
22
- }
23
- }
24
-
25
10
abstract class TraceSyntax {
26
11
val isForced : Boolean
27
12
@@ -108,3 +93,10 @@ abstract class TraceSyntax {
108
93
}
109
94
}
110
95
}
96
+
97
+ object trace extends TraceSyntax {
98
+ final val isForced = false
99
+ object force extends TraceSyntax {
100
+ final val isForced = true
101
+ }
102
+ }
You can’t perform that action at this time.
0 commit comments