diff options
author | schinz <schinz@epfl.ch> | 2003-07-29 08:27:42 +0000 |
---|---|---|
committer | schinz <schinz@epfl.ch> | 2003-07-29 08:27:42 +0000 |
commit | 4d18dc9f7d2dee8943cb0974337bdd0765bb863d (patch) | |
tree | 646654a5b6f4d309f23ea7d6b62bfdcdfd09a5a6 | |
parent | 86e5e65288381d2f43a00ee597708c0d3b12031d (diff) | |
download | scala-4d18dc9f7d2dee8943cb0974337bdd0765bb863d.tar.gz scala-4d18dc9f7d2dee8943cb0974337bdd0765bb863d.tar.bz2 scala-4d18dc9f7d2dee8943cb0974337bdd0765bb863d.zip |
- added isLabel method
-rw-r--r-- | sources/scalac/symtab/Symbol.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/scalac/symtab/Symbol.java b/sources/scalac/symtab/Symbol.java index 024b5241fd..0044beeb2c 100644 --- a/sources/scalac/symtab/Symbol.java +++ b/sources/scalac/symtab/Symbol.java @@ -404,6 +404,11 @@ public abstract class Symbol implements Modifiers, Kinds { } } + /** Does this symbol denote a label? */ + public boolean isLabel() { + return (flags & LABEL) != 0; + } + /** The variance of this symbol as an integer */ public int variance() { |