diff options
author | paltherr <paltherr@epfl.ch> | 2004-12-03 18:41:08 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-12-03 18:41:08 +0000 |
commit | ebe2c4bf3c1662b3667ce61fed54bde84afda615 (patch) | |
tree | dbc7c91a9aaf3989966bbcea30b306869d8a69e7 /sources/scalac/transformer | |
parent | 4fdab72617dbe4e049939e268df88f7a7efe5c06 (diff) | |
download | scala-ebe2c4bf3c1662b3667ce61fed54bde84afda615.tar.gz scala-ebe2c4bf3c1662b3667ce61fed54bde84afda615.tar.bz2 scala-ebe2c4bf3c1662b3667ce61fed54bde84afda615.zip |
- Removed field units in class Global
Diffstat (limited to 'sources/scalac/transformer')
-rw-r--r-- | sources/scalac/transformer/ICodePhase.java | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/sources/scalac/transformer/ICodePhase.java b/sources/scalac/transformer/ICodePhase.java index beaa7f6aab..7ac77cb11f 100644 --- a/sources/scalac/transformer/ICodePhase.java +++ b/sources/scalac/transformer/ICodePhase.java @@ -8,15 +8,12 @@ package scalac.transformer; +import ch.epfl.lamp.util.CodePrinter; + import scalac.Global; import scalac.Phase; import scalac.PhaseDescriptor; import scalac.CompilationUnit; -import scalac.symtab.Definitions; - -import ch.epfl.lamp.util.CodePrinter; -import scalac.atree.ATreePrinter; - /** * This class represents the ICode phase for the java version @@ -25,12 +22,7 @@ import scalac.atree.ATreePrinter; * scala one. See scala.tools.scalac.icode.ICodePhase for * implementation */ -public class ICodePhase extends Phase { - - //######################################################################## - // Private Fields - - private final Definitions definitions; +public abstract class ICodePhase extends Phase { //######################################################################## // Public Constructors @@ -38,21 +30,16 @@ public class ICodePhase extends Phase { /** Initializes this instance. */ public ICodePhase(Global global, PhaseDescriptor descriptor) { super(global, descriptor); - this.definitions = global.definitions; } //######################################################################## // Public Methods /** Applies this phase to the given compilation units. */ - public void apply(CompilationUnit[] units) { - // This java version doesn't make anything - } + public abstract void apply(CompilationUnit[] units); - public ATreePrinter getPrinter(CodePrinter cp) { - return new ATreePrinter(cp); - // !! Useless - } + /** Prints the given compilation units. */ + public abstract void print(CompilationUnit[] units, CodePrinter printer); + //######################################################################## } - |