diff options
author | Martin Odersky <odersky@gmail.com> | 2003-05-21 15:53:09 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2003-05-21 15:53:09 +0000 |
commit | 2cc25288dd36b43c66ee4448856851ede5e8d6b2 (patch) | |
tree | 2511e78517123c3db740fe7dba7886ac1be0d488 /sources/scalac/symtab/SymbolTablePrinter.java | |
parent | 22d0a607cd8cc270f66657c2ad3b71d1ecb77698 (diff) | |
download | scala-2cc25288dd36b43c66ee4448856851ede5e8d6b2.tar.gz scala-2cc25288dd36b43c66ee4448856851ede5e8d6b2.tar.bz2 scala-2cc25288dd36b43c66ee4448856851ede5e8d6b2.zip |
*** empty log message ***
Diffstat (limited to 'sources/scalac/symtab/SymbolTablePrinter.java')
-rw-r--r-- | sources/scalac/symtab/SymbolTablePrinter.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sources/scalac/symtab/SymbolTablePrinter.java b/sources/scalac/symtab/SymbolTablePrinter.java index b502942224..fdfeb0d95a 100644 --- a/sources/scalac/symtab/SymbolTablePrinter.java +++ b/sources/scalac/symtab/SymbolTablePrinter.java @@ -363,7 +363,7 @@ public class SymbolTablePrinter { type = type.typeArgs()[0]; star = true; } - printType(type, inner); + printType(type, inner); if (star) print("*"); return this; } @@ -386,7 +386,9 @@ public class SymbolTablePrinter { String keyword = getSymbolKeyword(symbol); if (keyword != null) print(keyword).space(); String inner = getSymbolInnerString(symbol); - return printSymbolName(symbol).printSymbolType(symbol, inner); + return printSymbolName(symbol) + .printType(symbol.loBound(), ">:") + .printSymbolType(symbol, inner); } //######################################################################## @@ -449,7 +451,11 @@ public class SymbolTablePrinter { /** Prints the given type with the given inner string. */ public SymbolTablePrinter printType(Type type, String inner) { - return printType0(getTypeToPrintForType(type), inner); + if ("<:".equals(inner) && type.symbol() == global.definitions.ANY_CLASS || + ">:".equals(inner) && type.symbol() == global.definitions.ALL_CLASS) + return this; + else + return printType0(getTypeToPrintForType(type), inner); } public SymbolTablePrinter printType0(Type type, String inner) { switch (type) { |