summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-12-09 15:56:08 +0000
committerpaltherr <paltherr@epfl.ch>2003-12-09 15:56:08 +0000
commit03e0decc573c9cc37c8873c79677b3b6a5c5c954 (patch)
treed40c23e77fef4d6294e892ea65424b490793a7dd /sources
parent7e748928cbd12dc8202e93374f0d52fa4cf44862 (diff)
downloadscala-03e0decc573c9cc37c8873c79677b3b6a5c5c954.tar.gz
scala-03e0decc573c9cc37c8873c79677b3b6a5c5c954.tar.bz2
scala-03e0decc573c9cc37c8873c79677b3b6a5c5c954.zip
- Added class TreeChecker
Diffstat (limited to 'sources')
-rw-r--r--sources/scalac/checkers/TreeChecker.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/sources/scalac/checkers/TreeChecker.java b/sources/scalac/checkers/TreeChecker.java
new file mode 100644
index 0000000000..d41d3518ed
--- /dev/null
+++ b/sources/scalac/checkers/TreeChecker.java
@@ -0,0 +1,35 @@
+package scalac.checkers;
+
+import scalac.Unit;
+import scalac.symtab.Definitions;
+
+/**
+ * This checker checks that trees are well-formed. It checks both the
+ * shape and the attribution of the trees.
+ */
+public class TreeChecker {
+
+ //########################################################################
+ // Private Fields
+
+ /** The global definitions */
+ private final Definitions definitions;
+
+ //########################################################################
+ // Public Constructors
+
+ /** Initializes this instance. */
+ public TreeChecker(Definitions definitions) {
+ this.definitions = definitions;
+ }
+
+ //########################################################################
+ // Public Methods - Checking units
+
+ /** Checks the unit. Returns true. */
+ public boolean check(Unit unit) {
+ return true;
+ }
+
+ //########################################################################
+}