From 97faee5a82b40b4c980c8cb222ff5ac4cb9083a4 Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Thu, 27 Mar 2014 12:53:03 +0100 Subject: Rename methods on FreshContext to make mutation obvious And avoid name clashes --- src/dotty/tools/dotc/core/Phases.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/core/Phases.scala') diff --git a/src/dotty/tools/dotc/core/Phases.scala b/src/dotty/tools/dotc/core/Phases.scala index ee993b890..3de42fb4e 100644 --- a/src/dotty/tools/dotc/core/Phases.scala +++ b/src/dotty/tools/dotc/core/Phases.scala @@ -163,7 +163,7 @@ object Phases { def run(implicit ctx: Context): Unit def runOn(units: List[CompilationUnit])(implicit ctx: Context): Unit = - for (unit <- units) run(ctx.fresh.withNewPhase(this).withCompilationUnit(unit)) + for (unit <- units) run(ctx.fresh.setPhase(this).setCompilationUnit(unit)) def description: String = name -- cgit v1.2.3