diff options
author | Nicolas Stucki <nicolas.stucki@gmail.com> | 2016-06-30 14:47:54 +0200 |
---|---|---|
committer | Nicolas Stucki <nicolas.stucki@gmail.com> | 2016-07-15 14:02:29 +0200 |
commit | f359953e0437c0b9b2205bf30c53c6206c6c0249 (patch) | |
tree | 2b49d9ead3bb6441fec62d8170845f37b4bff833 /src/dotty/tools/dotc/config/ScalaSettings.scala | |
parent | 409c6c30c8496529aace68967acccf88850145da (diff) | |
download | dotty-f359953e0437c0b9b2205bf30c53c6206c6c0249.tar.gz dotty-f359953e0437c0b9b2205bf30c53c6206c6c0249.tar.bz2 dotty-f359953e0437c0b9b2205bf30c53c6206c6c0249.zip |
Fix #1312: Improve Xprint
* Do not reprint a tree that has not changed.
* Highlight changes with yellow and insertions in green.
* -Xprint-diff-del: Inserts the deleted parts of the tree in red
and the parts that where changed in magenta.
Diffstat (limited to 'src/dotty/tools/dotc/config/ScalaSettings.scala')
-rw-r--r-- | src/dotty/tools/dotc/config/ScalaSettings.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/config/ScalaSettings.scala b/src/dotty/tools/dotc/config/ScalaSettings.scala index bf56a486e..989197981 100644 --- a/src/dotty/tools/dotc/config/ScalaSettings.scala +++ b/src/dotty/tools/dotc/config/ScalaSettings.scala @@ -85,6 +85,7 @@ class ScalaSettings extends Settings.SettingGroup { val writeICode = PhasesSetting("-Xprint-icode", "Log internal icode to *.icode files after", "icode") val Xprintpos = BooleanSetting("-Xprint-pos", "Print tree positions, as offsets.") val printtypes = BooleanSetting("-Xprint-types", "Print tree types (debugging option).") + val XprintDiffDel = BooleanSetting("-Xprint-diff-del", "Print deleted parts of the tree since last print.") val prompt = BooleanSetting("-Xprompt", "Display a prompt after each error (debugging option).") val script = StringSetting("-Xscript", "object", "Treat the source file as a script and wrap it in a main method.", "") val mainClass = StringSetting("-Xmain-class", "path", "Class for manifest's Main-Class entry (only useful with -d <jar>)", "") |