diff options
-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 812cb86769..6a50761c02 100644 --- a/sources/scalac/symtab/Symbol.java +++ b/sources/scalac/symtab/Symbol.java @@ -663,6 +663,11 @@ public abstract class Symbol implements Modifiers, Kinds { return kind == CLASS && (flags & PACKAGE) != 0; } + /** Does this symbol have the PACKAGE flag? */ + public final boolean hasPackageFlag() { + return (flags & PACKAGE) != 0; + } + /** Does this symbol denote a module? */ public final boolean isModule() { return kind == VAL && (flags & MODUL) != 0; |