Skip to content

Commit fb3128e

Browse files
committed
Revert "Document trace/trace.force"
This reverts commit 9fb3521.
1 parent fd70a2c commit fb3128e

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

compiler/src/dotty/tools/dotc/reporting/trace.scala

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,6 @@ import config.Config
77
import config.Printers
88
import core.Mode
99

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-
2510
abstract class TraceSyntax {
2611
val isForced: Boolean
2712

@@ -108,3 +93,10 @@ abstract class TraceSyntax {
10893
}
10994
}
11095
}
96+
97+
object trace extends TraceSyntax {
98+
final val isForced = false
99+
object force extends TraceSyntax {
100+
final val isForced = true
101+
}
102+
}

0 commit comments

Comments
 (0)