Skip to content

Commit f483e39

Browse files
committed
-Yplain-printer: do not print positions by default
You can still have positions printed by explictly passing -Yprintpos
1 parent 4f15021 commit f483e39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
483483
else
484484
Text()
485485

486-
nodeName ~ "(" ~ elems ~ tpSuffix ~ ")" ~ node.pos.toString
486+
nodeName ~ "(" ~ elems ~ tpSuffix ~ ")" ~ (node.pos.toString provided ctx.settings.Yprintpos.value)
487487
case _ =>
488488
tree.fallbackToText(this)
489489
}

0 commit comments

Comments
 (0)