summaryrefslogtreecommitdiff
path: root/sources/scalac/Phase.java
diff options
context:
space:
mode:
Diffstat (limited to 'sources/scalac/Phase.java')
-rw-r--r--sources/scalac/Phase.java73
1 files changed, 0 insertions, 73 deletions
diff --git a/sources/scalac/Phase.java b/sources/scalac/Phase.java
deleted file mode 100644
index 5239562e9d..0000000000
--- a/sources/scalac/Phase.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/* ____ ____ ____ ____ ______ *\
-** / __// __ \/ __// __ \/ ____/ SOcos COmpiles Scala **
-** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002, LAMP/EPFL **
-** /_____/\____/\___/\____/____/ **
-\* */
-
-// $Id$
-
-package scalac;
-
-import scalac.symtab.Symbol;
-import scalac.symtab.Type;
-
-public abstract class Phase {
-
- //########################################################################
- // Public Fields
-
- /** The global environment */
- public final Global global;
-
- /** The phase descriptor */
- public final PhaseDescriptor descriptor;
-
- /** The phase identifier */
- public final int id;
-
- /** The previous phase */
- public final Phase prev;
-
- /** The next phase */
- public Phase next;
-
- //########################################################################
- // Public Constructors
-
- /** Initializes this instance. */
- public Phase(Global global, PhaseDescriptor descriptor) {
- this.global = global;
- this.descriptor = descriptor;
- this.id = descriptor.id();
- this.prev = global.currentPhase;
- if (prev != null) prev.next = this;
- descriptor.initialize(this);
- global.currentPhase = this;
- }
-
- //########################################################################
- // Public Methods
-
- /** Does this phase precede the given phase? */
- public boolean precedes(Phase phase) {
- return id < phase.id;
- }
-
- /**
- * Returns the info of `sym' after the phase. Assumes that `tp' is
- * the info of symbol `sym' before this phase.
- */
- public Type transformInfo(Symbol sym, Type tp) {
- return tp;
- }
-
- /** Applies this phase to the given compilation unit. */
- public abstract void apply(CompilationUnit unit);
-
- /** Returns the name of this phase. */
- public final String toString() {
- return descriptor.name();
- }
-
- //########################################################################
-}