From cbd30cf21cbde81a1613226e920c282bd9ebfdf7 Mon Sep 17 00:00:00 2001 From: paltherr Date: Tue, 7 Dec 2004 14:56:23 +0000 Subject: - Removed method Transformer.apply(CompilationU... - Removed method Transformer.apply(CompilationUnit[] - Added method ) Phase.apply(CompilationUnit - Adapted most phases to implement method ) Phase.apply(CompilationUnit instead of Phase.apply(CompilationUnit[] ) --- sources/scalac/Global.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sources/scalac/Global.java') diff --git a/sources/scalac/Global.java b/sources/scalac/Global.java index bfba148993..ec8f20ab81 100644 --- a/sources/scalac/Global.java +++ b/sources/scalac/Global.java @@ -389,9 +389,9 @@ public abstract class Global { start(); // System.out.println("*** " + currentPhase.descriptor.description() + " ***"); currentPhase.apply(units); - stop(currentPhase.descriptor.taskDescription()); if (currentPhase == PHASE.ANALYZER.phase()) units = ((AnalyzerPhase)currentPhase).getUnits(); + stop(currentPhase.descriptor.taskDescription()); if (currentPhase.descriptor.hasPrintFlag()) print(units); // if (currentPhase.descriptor.hasGraphFlag()) // !!! // if (currentPhase.descriptor.hasCheckFlag()) // !!! @@ -423,7 +423,7 @@ public abstract class Global { currentPhase = PHASE.PARSER.phase(); PHASE.PARSER.phase().apply(new CompilationUnit[] {unit}); currentPhase = PHASE.ANALYZER.phase(); - ((AnalyzerPhase)PHASE.ANALYZER.phase()).lateEnter(unit); + ((AnalyzerPhase)PHASE.ANALYZER.phase()).apply(unit); // !!! add code for later phases? currentPhase = backup; } -- cgit v1.2.3