Skip to content

Commit e5e2f82

Browse files
authored
Merge pull request #2083 from dotty-staging/fix/plainprinter-pos
-Yplain-printer: do not print positions by default
2 parents 4f15021 + f483e39 commit e5e2f82

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)