diff options
author | paltherr <paltherr@epfl.ch> | 2003-12-09 15:56:08 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-12-09 15:56:08 +0000 |
commit | 03e0decc573c9cc37c8873c79677b3b6a5c5c954 (patch) | |
tree | d40c23e77fef4d6294e892ea65424b490793a7dd | |
parent | 7e748928cbd12dc8202e93374f0d52fa4cf44862 (diff) | |
download | scala-03e0decc573c9cc37c8873c79677b3b6a5c5c954.tar.gz scala-03e0decc573c9cc37c8873c79677b3b6a5c5c954.tar.bz2 scala-03e0decc573c9cc37c8873c79677b3b6a5c5c954.zip |
- Added class TreeChecker
-rw-r--r-- | config/list/compiler.lst | 1 | ||||
-rw-r--r-- | sources/scalac/checkers/TreeChecker.java | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/config/list/compiler.lst b/config/list/compiler.lst index 5a7404d4ce..b9f305a012 100644 --- a/config/list/compiler.lst +++ b/config/list/compiler.lst @@ -73,6 +73,7 @@ checkers/CheckSymbols.java checkers/CheckTreeNodes.java checkers/CheckTypes.java checkers/Checker.java +checkers/TreeChecker.java symtab/classfile/AttributeParser.java symtab/classfile/CLRPackageParser.java 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; + } + + //######################################################################## +} |