diff options
author | paltherr <paltherr@epfl.ch> | 2004-03-02 16:46:57 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-03-02 16:46:57 +0000 |
commit | 63e5a79c2b4c2c11ce4c81df1387aca31d34a247 (patch) | |
tree | 22948bfee7790d6af3a66ffd2a90f4bb71fde7c3 /sources/scalac/checkers | |
parent | 4b14bbab34b0f86385c4df655fb4b954e0a79ac6 (diff) | |
download | scala-63e5a79c2b4c2c11ce4c81df1387aca31d34a247.tar.gz scala-63e5a79c2b4c2c11ce4c81df1387aca31d34a247.tar.bz2 scala-63e5a79c2b4c2c11ce4c81df1387aca31d34a247.zip |
- Removed CheckNames
Diffstat (limited to 'sources/scalac/checkers')
-rw-r--r-- | sources/scalac/checkers/CheckNames.java | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/sources/scalac/checkers/CheckNames.java b/sources/scalac/checkers/CheckNames.java deleted file mode 100644 index 9529a6b088..0000000000 --- a/sources/scalac/checkers/CheckNames.java +++ /dev/null @@ -1,47 +0,0 @@ -/* ____ ____ ____ ____ ______ *\ -** / __// __ \/ __// __ \/ ____/ SOcos COmpiles Scala ** -** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002, LAMP/EPFL ** -** /_____/\____/\___/\____/____/ ** -\* */ - -// $Id$ - -package scalac.checkers; - -import scalac.ast.Tree; -import scalac.util.Name; -import scalac.util.Debug; -import scalac.symtab.Symbol; - -/** - * Check that the of symbols are of the appropriate kind - * - * @author Nikolay Mihaylov - * @version 1.0 - */ - -public class CheckNames extends Checker { - - public CheckNames(scalac.Global global) { - super(global); - } - - public void check(Tree tree) { - switch (tree) { - case ClassDef(_, Name name, _, _, _, _): - verify(tree, - name.isTypeName(), - "name kinds", - "class " + Debug.show(tree.symbol()) + - "should have a type name"); - - Symbol constr = tree.symbol().primaryConstructor(); - verify(tree, - constr.name.isTypeName(), - "name kinds", - "the class constructor " + Debug.show(constr) - + " should have a type name"); - break; - } - } -} |