aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/Run.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-03-04 12:23:10 +0100
committerMartin Odersky <odersky@gmail.com>2016-03-12 16:08:36 +0100
commit12d895587444d5d59e7d75dfaf7b85deb61e99e0 (patch)
treee8f880f79911366d448ff6cc6cdb82fdd846ac6a /src/dotty/tools/dotc/Run.scala
parentc1e263bebf7e73239e7faa3e48d75a0a7df45d76 (diff)
downloaddotty-12d895587444d5d59e7d75dfaf7b85deb61e99e0.tar.gz
dotty-12d895587444d5d59e7d75dfaf7b85deb61e99e0.tar.bz2
dotty-12d895587444d5d59e7d75dfaf7b85deb61e99e0.zip
Better encapsulation
No more leaking ofMove PatchedFiles in a settings option. Move all patch classes into a `Rewrites` object.
Diffstat (limited to 'src/dotty/tools/dotc/Run.scala')
-rw-r--r--src/dotty/tools/dotc/Run.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/Run.scala b/src/dotty/tools/dotc/Run.scala
index aba7a002d..ee808323a 100644
--- a/src/dotty/tools/dotc/Run.scala
+++ b/src/dotty/tools/dotc/Run.scala
@@ -8,7 +8,7 @@ import io.PlainFile
import util.{SourceFile, NoSource, Stats, SimpleMap}
import reporting.Reporter
import transform.TreeChecker
-import rewrite.Patches
+import rewrite.Rewrites
import java.io.{BufferedWriter, OutputStreamWriter}
import scala.reflect.io.VirtualFile
import scala.util.control.NonFatal
@@ -65,7 +65,7 @@ class Run(comp: Compiler)(implicit ctx: Context) {
foreachUnit(printTree)
ctx.informTime(s"$phase ", start)
}
- if (!ctx.reporter.hasErrors) Patches.writeBack()
+ if (!ctx.reporter.hasErrors) Rewrites.writeBack()
}
private def printTree(ctx: Context) = {