summaryrefslogtreecommitdiff
path: root/sources/scalac/PhaseDescriptor.java
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-03-21 16:42:56 +0000
committerpaltherr <paltherr@epfl.ch>2003-03-21 16:42:56 +0000
commite2a09f258a66f71ea90e65b645d8a03b1a64be71 (patch)
tree22c62210a3cfc5fa5eb28d657399e560cf738e1d /sources/scalac/PhaseDescriptor.java
parent787d4bb9dbc540a61632c1f234a54ab74a69609c (diff)
downloadscala-e2a09f258a66f71ea90e65b645d8a03b1a64be71.tar.gz
scala-e2a09f258a66f71ea90e65b645d8a03b1a64be71.tar.bz2
scala-e2a09f258a66f71ea90e65b645d8a03b1a64be71.zip
- Removed method createPhase in class PhaseDesc...
- Removed method createPhase in class PhaseDescriptor Made method apply - abstract in class PhaseDescriptor Implemented method apply in all - subclasses of class PhaseDescriptor
Diffstat (limited to 'sources/scalac/PhaseDescriptor.java')
-rw-r--r--sources/scalac/PhaseDescriptor.java22
1 files changed, 3 insertions, 19 deletions
diff --git a/sources/scalac/PhaseDescriptor.java b/sources/scalac/PhaseDescriptor.java
index 0316a80215..6597dc9e5e 100644
--- a/sources/scalac/PhaseDescriptor.java
+++ b/sources/scalac/PhaseDescriptor.java
@@ -2,10 +2,10 @@
** / __// __ \/ __// __ \/ ____/ SOcos COmpiles Scala **
** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002, LAMP/EPFL **
** /_____/\____/\___/\____/____/ **
-** **
-** $Id$
\* */
+// $Id$
+
package scalac;
import java.util.*;
@@ -33,10 +33,6 @@ public abstract class PhaseDescriptor {
return "initializing compiler";
}
- public Phase createPhase(Global global) {
- return null;
- }
-
/** apply phase to all compilation units
*/
public void apply(Global global) {}
@@ -52,10 +48,6 @@ public abstract class PhaseDescriptor {
return "compilation terminated ";
}
- public Phase createPhase(Global global) {
- return null;
- }
-
/** apply phase to all compilation units
*/
public void apply(Global global) {}
@@ -97,10 +89,6 @@ public abstract class PhaseDescriptor {
this.id = id;
}
- /** create a phase
- */
- public abstract Phase createPhase(Global global);
-
/** Assume that `tp' is the info of symbol `sym' before this phase.
* Return the info of `sym' after the phase.
*/
@@ -110,11 +98,7 @@ public abstract class PhaseDescriptor {
/** apply phase to all compilation units
*/
- public void apply(Global global) {
- global.start();
- createPhase(global).apply();
- global.stop(taskDescription());
- }
+ public abstract void apply(Global global);
/** check all compilation units
*/