summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-04-16 07:22:46 +0000
committerpaltherr <paltherr@epfl.ch>2003-04-16 07:22:46 +0000
commit8bde4b77217ee9d89008ffddc6a99110e8ce012a (patch)
treee3018174396a8c9470c28c7eb471b3d115960e2f /sources
parent45d391977cceaecee41d90d8dbb40d73e64b905e (diff)
downloadscala-8bde4b77217ee9d89008ffddc6a99110e8ce012a.tar.gz
scala-8bde4b77217ee9d89008ffddc6a99110e8ce012a.tar.bz2
scala-8bde4b77217ee9d89008ffddc6a99110e8ce012a.zip
- Enabled tree node checks
Diffstat (limited to 'sources')
-rw-r--r--sources/meta/scalac/ast/MetaTree.java2
-rw-r--r--sources/scalac/ast/Tree.java.tmpl1
2 files changed, 2 insertions, 1 deletions
diff --git a/sources/meta/scalac/ast/MetaTree.java b/sources/meta/scalac/ast/MetaTree.java
index 84089a708b..a8ef084b78 100644
--- a/sources/meta/scalac/ast/MetaTree.java
+++ b/sources/meta/scalac/ast/MetaTree.java
@@ -50,7 +50,7 @@ public class MetaTree extends AbstractTreeExpander {
if (node.fields != null) {
node.printParams(writer.print("(")).print(")");
writer.lbrace();
- writer.println("// !!! assert TreeChecker.instance.check(this);");
+ writer.println("assert CheckTreeNodes.instance.checkNode(this);");
writer.rbrace();
} else if (node == tree.n_Empty) {
writer.print("; static { "+node.name+".type = ").
diff --git a/sources/scalac/ast/Tree.java.tmpl b/sources/scalac/ast/Tree.java.tmpl
index 5616847e95..65b81b905b 100644
--- a/sources/scalac/ast/Tree.java.tmpl
+++ b/sources/scalac/ast/Tree.java.tmpl
@@ -9,6 +9,7 @@
package scalac.ast;
import scalac.Global;
+import scalac.checkers.CheckTreeNodes;
import scalac.symtab.Symbol;
import scalac.symtab.Type;
import scalac.util.Debug;