diff options
author | paltherr <paltherr@epfl.ch> | 2004-03-11 13:30:24 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-03-11 13:30:24 +0000 |
commit | aa96bcae32197b746ec3dca26bb28198df0261ea (patch) | |
tree | 448bdc689f2a84c99b62a04b85e0c50108cbcfc3 /sources/scalac/symtab/SymbolTablePrinter.java | |
parent | 7c81b118aefe74312fc97ea9a5ed939e67a11c96 (diff) | |
download | scala-aa96bcae32197b746ec3dca26bb28198df0261ea.tar.gz scala-aa96bcae32197b746ec3dca26bb28198df0261ea.tar.bz2 scala-aa96bcae32197b746ec3dca26bb28198df0261ea.zip |
- Modified SymbolTablePrinter.getSymbolKind to ...
- Modified SymbolTablePrinter.getSymbolKind to include package and
object info
Diffstat (limited to 'sources/scalac/symtab/SymbolTablePrinter.java')
-rw-r--r-- | sources/scalac/symtab/SymbolTablePrinter.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sources/scalac/symtab/SymbolTablePrinter.java b/sources/scalac/symtab/SymbolTablePrinter.java index 6c5d17e52b..333978257c 100644 --- a/sources/scalac/symtab/SymbolTablePrinter.java +++ b/sources/scalac/symtab/SymbolTablePrinter.java @@ -251,14 +251,16 @@ public class SymbolTablePrinter { case Kinds.NONE: return null; case Kinds.CLASS: + if (symbol.isPackageClass()) return "package class"; + if (symbol.isModuleClass()) return "object class"; if (symbol.isTrait()) return "trait"; - if (symbol.isModuleClass() && global.debug) return "object class"; return "class"; case Kinds.TYPE: case Kinds.ALIAS: return "type"; case Kinds.VAL: if (symbol.isVariable()) return "variable"; + if (symbol.isPackage()) return "package"; if (symbol.isModule()) return "object"; if (symbol.isConstructor()) return "constructor"; if (symbol.isInitializedMethod()) |