summaryrefslogtreecommitdiff
path: root/sources/scalac/util/EmptyPhase.java
diff options
context:
space:
mode:
Diffstat (limited to 'sources/scalac/util/EmptyPhase.java')
-rw-r--r--sources/scalac/util/EmptyPhase.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/sources/scalac/util/EmptyPhase.java b/sources/scalac/util/EmptyPhase.java
new file mode 100644
index 0000000000..84ffe81adf
--- /dev/null
+++ b/sources/scalac/util/EmptyPhase.java
@@ -0,0 +1,36 @@
+/* ____ ____ ____ ____ ______ *\
+** / __// __ \/ __// __ \/ ____/ SOcos COmpiles Scala **
+** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002, LAMP/EPFL **
+** /_____/\____/\___/\____/____/ **
+\* */
+
+// $Id$
+
+package scalac.util;
+
+import scalac.Global;
+import scalac.Phase;
+import scalac.PhaseDescriptor;
+import scalac.Unit;
+
+/** This class implements a phase that does nothing. */
+public class EmptyPhase extends Phase {
+
+ //########################################################################
+ // Public Constructors
+
+ /** Initializes this instance. */
+ public EmptyPhase(Global global, PhaseDescriptor descriptor) {
+ super(global, descriptor);
+ }
+
+ //########################################################################
+ // Public Methods
+
+ /** Applies this phase to the given compilation units. */
+ public void apply(Unit[] units) {
+ // do nothing
+ }
+
+ //########################################################################
+}