summaryrefslogtreecommitdiff
path: root/sources/scalac/typechecker/RefCheckPhase.java
diff options
context:
space:
mode:
Diffstat (limited to 'sources/scalac/typechecker/RefCheckPhase.java')
-rw-r--r--sources/scalac/typechecker/RefCheckPhase.java42
1 files changed, 42 insertions, 0 deletions
diff --git a/sources/scalac/typechecker/RefCheckPhase.java b/sources/scalac/typechecker/RefCheckPhase.java
new file mode 100644
index 0000000000..6c1fdb08a2
--- /dev/null
+++ b/sources/scalac/typechecker/RefCheckPhase.java
@@ -0,0 +1,42 @@
+/* ____ ____ ____ ____ ______ *\
+** / __// __ \/ __// __ \/ ____/ SOcos COmpiles Scala **
+** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002, LAMP/EPFL **
+** /_____/\____/\___/\____/____/ **
+**
+** $Id$
+\* */
+
+package scalac.typechecker;
+
+import scalac.*;
+import scalac.ast.*;
+import scalac.checkers.*;
+
+public class RefCheckPhase extends PhaseDescriptor {
+
+ public String name() {
+ return "refcheck";
+ }
+
+ public String description () {
+ return "reference checking";
+ }
+
+ public String taskDescription () {
+ return "reference checking";
+ }
+
+ public Phase createPhase(Global global) {
+ return new RefCheck(global, this);
+ }
+
+ public Checker[] postCheckers(Global global) {
+ return new Checker[] {
+ /* todo: uncomment
+ new CheckSymbols(global),
+ new CheckTypes(global),
+ new CheckOwners(global)
+ */
+ };
+ }
+}