File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,13 @@ object Printers {
22
22
val implicitsDetailed : Printer = noPrinter
23
23
val subtyping : Printer = noPrinter
24
24
val unapp : Printer = noPrinter
25
- val completions = noPrinter
26
25
val gadts = noPrinter
27
26
val hk = noPrinter
28
27
val variances = noPrinter
29
28
val incremental = noPrinter
30
29
val config = noPrinter
31
30
val transforms = noPrinter
31
+ val completions = noPrinter
32
32
val cyclicErrors = noPrinter
33
33
val pickling = noPrinter
34
34
}
Original file line number Diff line number Diff line change @@ -163,6 +163,11 @@ object SymDenotations {
163
163
}
164
164
165
165
private def completeFrom (completer : LazyType )(implicit ctx : Context ): Unit = {
166
+ if (completions ne noPrinter) {
167
+ completions.println(i " ${" " * indent}completing ${if (isType) " type" else " val" } $name" )
168
+ indent += 1
169
+ }
170
+ indent += 1
166
171
if (myFlags is Touched ) throw CyclicReference (this )
167
172
myFlags |= Touched
168
173
@@ -173,6 +178,11 @@ object SymDenotations {
173
178
completions.println(s " error while completing ${this .debugString}" )
174
179
throw ex
175
180
}
181
+ finally
182
+ if (completions ne noPrinter) {
183
+ indent -= 1
184
+ completions.println(i " ${" " * indent}completed $name in $owner" )
185
+ }
176
186
// completions.println(s"completed ${this.debugString}")
177
187
}
178
188
@@ -1872,4 +1882,6 @@ object SymDenotations {
1872
1882
}
1873
1883
1874
1884
private val AccessorOrLabel = Accessor | Label
1885
+
1886
+ private var indent = 0 // for completions printing
1875
1887
}
You can’t perform that action at this time.
0 commit comments