diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2017-03-12 17:53:25 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2017-03-12 19:28:00 +0100 |
commit | f483e394598f929df19bdd023dc5388ffb18b4e0 (patch) | |
tree | 7259a6318c60186cdf682cad696f64c85edbbbea /compiler/src/dotty/tools/dotc/printing | |
parent | 4f15021847313c6d264e1bfad404f86f67912870 (diff) | |
download | dotty-f483e394598f929df19bdd023dc5388ffb18b4e0.tar.gz dotty-f483e394598f929df19bdd023dc5388ffb18b4e0.tar.bz2 dotty-f483e394598f929df19bdd023dc5388ffb18b4e0.zip |
-Yplain-printer: do not print positions by default
You can still have positions printed by explictly passing -Yprintpos
Diffstat (limited to 'compiler/src/dotty/tools/dotc/printing')
-rw-r--r-- | compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala b/compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala index 6af902d1b..67d44daa1 100644 --- a/compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala +++ b/compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala @@ -483,7 +483,7 @@ class PlainPrinter(_ctx: Context) extends Printer { else Text() - nodeName ~ "(" ~ elems ~ tpSuffix ~ ")" ~ node.pos.toString + nodeName ~ "(" ~ elems ~ tpSuffix ~ ")" ~ (node.pos.toString provided ctx.settings.Yprintpos.value) case _ => tree.fallbackToText(this) } |