File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
compiler/src/dotty/tools/dotc/cc Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -314,12 +314,15 @@ object CaptureSet:
314
314
isSolved = true
315
315
deps.foreach(_.propagateSolved())
316
316
317
- override def toText (printer : Printer ): Text =
318
- def debug = inContext(printer.printerContext) {
319
- ctx.settings.YccDebug .value
320
- }
321
- super .toText(printer)
322
- ~ (id.toString ~ getClass.getSimpleName.take(1 ) provided ! isConst && debug)
317
+ protected def ids (using Context ): String =
318
+ val trail = this .match
319
+ case dv : DerivedVar => dv.source.ids
320
+ case _ => " "
321
+ s " $id${getClass.getSimpleName.take(1 )}$trail"
322
+
323
+ override def toText (printer : Printer ): Text = inContext(printer.printerContext) {
324
+ super .toText(printer) ~ (Str (ids) provided ! isConst && ctx.settings.YccDebug .value)
325
+ }
323
326
324
327
override def toString = s " Var $id$elems"
325
328
end Var
You can’t perform that action at this time.
0 commit comments