-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Improve Xprint #1345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Xprint #1345
Conversation
nicolasstucki
commented
Jun 30, 2016
- Dont reprint a tree that hasn't changed.
- Highlight changes in yellow.
Awesome job! 🌟 |
ping @adriaanm, you may be interested to port this. |
Wow not bad. |
91e2da6
to
0e14bd2
Compare
Cool! Yeah we should port this over once 2.12.0 is out |
ac07131
to
8e2e4af
Compare
8e2e4af
to
9775279
Compare
} | ||
} | ||
|
||
private def mkColoredDiffTree(treeString: String, lastTreeSting: String): String = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be nice to factor this out to a module reusable from other parts of compiler.
This logic doesn't seem specific to Run
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extracted it to dotty/tools/dotc/util/DiffUtil.scala
otherwise LGTM |
* 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.
9775279
to
f359953
Compare
LGTM. Glad to have this merged. |