We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 870fd44 commit 483a0e6Copy full SHA for 483a0e6
compiler/src/dotty/tools/dotc/ast/Positioned.scala
@@ -27,10 +27,11 @@ abstract class Positioned(implicit @constructorOnly src: SourceFile) extends Pro
27
def uniqueId: Int = myUniqueId
28
29
def uniqueId_=(id: Int): Unit = {
30
- if (Positioned.debugId == id) {
+ def printTrace() = {
31
println(s"Debug tree (id=${Positioned.debugId}) creation \n$this\n")
32
Reporter.displayPrompt(Console.in, new PrintWriter(Console.err, true))
33
}
34
+ if (Positioned.debugId == id) printTrace()
35
myUniqueId = id
36
37
0 commit comments