diff options
author | Martin Odersky <odersky@gmail.com> | 2003-03-03 17:41:08 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2003-03-03 17:41:08 +0000 |
commit | fe9d7cc9ec4e55d42a09b149d60d6cf2f8be09af (patch) | |
tree | b75e907e87f3448b01ca3ec2f7af7cd62d574e0e /sources/scalac/ast/Tree.java | |
parent | 1d2a33a1c2692407698dd7c4dd7b46703eef2d24 (diff) | |
download | scala-fe9d7cc9ec4e55d42a09b149d60d6cf2f8be09af.tar.gz scala-fe9d7cc9ec4e55d42a09b149d60d6cf2f8be09af.tar.bz2 scala-fe9d7cc9ec4e55d42a09b149d60d6cf2f8be09af.zip |
*** empty log message ***
Diffstat (limited to 'sources/scalac/ast/Tree.java')
-rw-r--r-- | sources/scalac/ast/Tree.java | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/sources/scalac/ast/Tree.java b/sources/scalac/ast/Tree.java index 700aca2fd1..da3bcacc84 100644 --- a/sources/scalac/ast/Tree.java +++ b/sources/scalac/ast/Tree.java @@ -136,7 +136,6 @@ public class Tree { */ public case TypeDef(int mods, Name name, - TypeDef[] tparams, Tree rhs) { assert name.isTypeName(); if (!rhs.isType()) @@ -361,9 +360,16 @@ public class Tree { public case Literal(Object value); /** + * TypeTerm + * - introduced by: Analyzer + * - eliminated by: - + */ + public case TypeTerm(); + + /** * Singleton type * - introduced by: parser - * - eliminated by: !!! ? (could be done by analyzer ?) + * - eliminated by: Analyzer */ public case SingletonType(Tree ref) { if (!ref.isTerm()) @@ -373,7 +379,7 @@ public class Tree { /** * Type selection * - introduced by: parser - * - eliminated by: !!! ? (could be done by analyzer ?) + * - eliminated by: Analyzer */ public case SelectFromType(Tree qualifier, Name selector) { @@ -385,7 +391,7 @@ public class Tree { /** * Function type * - introduced by: parser - * - eliminated by: !!! ? (could be done by analyzer ?) + * - eliminated by: Analyzer */ public case FunType(Tree[] argtpes, Tree restpe) { @@ -399,7 +405,7 @@ public class Tree { /** * Object type (~ Template) * - introduced by: parser - * - eliminated by: !!! ? (could be done by analyzer ?) + * - eliminated by: Analyzer */ public case CompoundType(Tree[] parents, Tree[] refinements) { @@ -415,7 +421,7 @@ public class Tree { /** * Applied type * - introduced by: parser - * - eliminated by: !!! ? (could be done by analyzer ?) + * - eliminated by: Analyzer */ public case AppliedType(Tree tpe, Tree[] args) { assert tpe.isType() : this; @@ -468,6 +474,7 @@ public class Tree { switch(this) { case Bad(): case Empty: + case TypeTerm(): case SingletonType(_): case SelectFromType(_, _): case CompoundType(_, _): @@ -723,9 +730,9 @@ public class Tree { public static final TypeDef[] EMPTY_ARRAY = new TypeDef[0]; - public ExtTypeDef(int mods, Name name, TypeDef[] tparams, Tree rhs) + public ExtTypeDef(int mods, Name name, Tree rhs) { - super(mods, name, tparams, rhs); + super(mods, name, rhs); } public boolean hasSymbol() { |