diff options
author | paltherr <paltherr@epfl.ch> | 2003-04-16 07:22:19 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-04-16 07:22:19 +0000 |
commit | 45d391977cceaecee41d90d8dbb40d73e64b905e (patch) | |
tree | b2d51802c2c5182cb9137de537e7a197274f81d0 | |
parent | 46034e790cf136f8da09d2b4c82d91359b9266b8 (diff) | |
download | scala-45d391977cceaecee41d90d8dbb40d73e64b905e.tar.gz scala-45d391977cceaecee41d90d8dbb40d73e64b905e.tar.bz2 scala-45d391977cceaecee41d90d8dbb40d73e64b905e.zip |
- Added constant instance
- Added method checkNode
-rw-r--r-- | sources/scalac/checkers/CheckTreeNodes.java.tmpl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sources/scalac/checkers/CheckTreeNodes.java.tmpl b/sources/scalac/checkers/CheckTreeNodes.java.tmpl index 4a11ec4308..53b8f3b016 100644 --- a/sources/scalac/checkers/CheckTreeNodes.java.tmpl +++ b/sources/scalac/checkers/CheckTreeNodes.java.tmpl @@ -15,6 +15,11 @@ import scalac.Global; public class CheckTreeNodes { //######################################################################## + // Public Constants + + public static final CheckTreeNodes instance = new CheckTreeNodes(); + + //######################################################################## // Private Fields private final Global global = Global.instance; @@ -26,5 +31,10 @@ public class CheckTreeNodes { {#TreeSwitch#} } + public boolean checkNode(Tree tree) { + check(tree); + return true; + } + //######################################################################## } |