aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/rewrite
Commit message (Collapse)AuthorAgeFilesLines
* Rename Reporting#println -> Reporting#echoMartin Odersky2016-04-271-1/+1
| | | | | | | | | | There's a trap otherwise that, when in a class inheriting from Context (and with it Reporting) a call to println will go to this.println and therefore might not print at all, if the current context buffers messages. I lost a lot of time on this on several occasions when I scratched my head why a simple debug println would not show. Better avoid this in the future for myself and others.
* Address reviewer comments.Martin Odersky2016-03-141-19/+12
|
* Fix assert in RewritesMartin Odersky2016-03-121-2/+5
| | | | | | `Iterator.sliding(2, 1)` returns a one-element result if the original iterator contains only one element, which makes it unpleasant to use for our task. Replaced by a fold.
* Better encapsulationMartin Odersky2016-03-122-87/+96
| | | | | No more leaking ofMove PatchedFiles in a settings option. Move all patch classes into a `Rewrites` object.
* Avoid setupMethod in DriverMartin Odersky2016-03-121-16/+6
| | | | | Driver should not know that patch functionality exists. Instead, introduce settings that can introduce their own stateful values.
* Add patching functionality for migrationMartin Odersky2016-03-121-0/+97
Firs version of patching that can be invoked by dotty compiler itself.