diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2005-12-18 18:33:03 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2005-12-18 18:33:03 +0000 |
commit | d3819b93ab8b2de3d5cc35c33b8258ccdb5a931a (patch) | |
tree | dfc6f7f497e58ea3321e6f687b11313d2afa86b5 /sources/meta/scalac/ast/TreeKind.java | |
parent | 0e82079908655682e5140ad521cef0572cb6d2a4 (diff) | |
download | scala-d3819b93ab8b2de3d5cc35c33b8258ccdb5a931a.tar.gz scala-d3819b93ab8b2de3d5cc35c33b8258ccdb5a931a.tar.bz2 scala-d3819b93ab8b2de3d5cc35c33b8258ccdb5a931a.zip |
Removed old Scalac code in sources and various ...
Removed old Scalac code in sources and various other obsolete elements.
Diffstat (limited to 'sources/meta/scalac/ast/TreeKind.java')
-rw-r--r-- | sources/meta/scalac/ast/TreeKind.java | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/sources/meta/scalac/ast/TreeKind.java b/sources/meta/scalac/ast/TreeKind.java deleted file mode 100644 index 35dcd0dd55..0000000000 --- a/sources/meta/scalac/ast/TreeKind.java +++ /dev/null @@ -1,63 +0,0 @@ -/* ____ ____ ____ ____ ______ *\ -** / __// __ \/ __// __ \/ ____/ SOcos COmpiles Scala ** -** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002, LAMP/EPFL ** -** /_____/\____/\___/\____/____/ ** -\* */ - -// $Id$ - -package meta.scalac.ast; - -/** This class enumerates the different kinds of tree nodes. */ -public class TreeKind { - - //######################################################################## - // Public Cases - - /** Designates a type, a term or anything else. */ - public case Any; - - /** Designates a type. */ - public case Type; - - /** Designates a term. */ - public case Term; - - /** Designates either a type or a term. */ - public case Dual; - - /** Designates either a type or a term (a test may indicate which one). */ - public case Test; - - /** Designates neither a type nor a term. */ - public case None; - - //######################################################################## - // Public Method - - public boolean isA(TreeKind that) { - switch (this) { - case Any : return true; - case Type: return that == Type; - case Term: return that == Term; - case Dual: return that == Type || that == Term || that == Dual; - case Test: return that == Type || that == Term || that == Dual; - case None: return that == None; - default : throw new Error(); - } - } - - public String toString() { - switch(this) { - case Any : return "Any"; - case Type: return "Type"; - case Term: return "Term"; - case Dual: return "Dual"; - case Test: return "Test"; - case None: return "None"; - default : throw new Error(); - } - } - - //######################################################################## -} |