diff options
author | cremet <cremet@epfl.ch> | 2004-09-14 16:32:39 +0000 |
---|---|---|
committer | cremet <cremet@epfl.ch> | 2004-09-14 16:32:39 +0000 |
commit | 0516acad01c32c120ad929d8fe80f71798322375 (patch) | |
tree | afba8b34d90afd91fa31a86c60de43d3e77bfe00 | |
parent | 913e6bd36f0967ed5f53844a841fc00c7a2378d5 (diff) | |
download | scala-0516acad01c32c120ad929d8fe80f71798322375.tar.gz scala-0516acad01c32c120ad929d8fe80f71798322375.tar.bz2 scala-0516acad01c32c120ad929d8fe80f71798322375.zip |
- I added the variance display for class declar...
- I added the variance display for class declarations. - I changed the
display of sealed symbols from "qualified" to "sealed". - I removed the
display of the leading "?" character for symbols coming from a Java
meta-attribute.
-rw-r--r-- | sources/scala/tools/scaladoc/SymbolTablePrinter.java | 5 | ||||
-rw-r--r-- | sources/scala/tools/scaladoc/SymbolTablePrinterFactory.java | 3 | ||||
-rw-r--r-- | sources/scalac/symtab/Modifiers.java | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/sources/scala/tools/scaladoc/SymbolTablePrinter.java b/sources/scala/tools/scaladoc/SymbolTablePrinter.java index 638bcee31a..d2d64f7004 100644 --- a/sources/scala/tools/scaladoc/SymbolTablePrinter.java +++ b/sources/scala/tools/scaladoc/SymbolTablePrinter.java @@ -152,6 +152,11 @@ public abstract class MySymbolTablePrinter extends SymbolTablePrinter { public SymbolTablePrinter printShortSignature(Symbol symbol, boolean addLink) { String keyword = getSymbolKeywordForDoc(symbol); if (keyword != null) print(keyword).space(); + // variance + if (symbol.variance() > 0) + print("+"); + else if (symbol.variance() < 0) + print("-"); printSymbol(symbol, addLink); return printType(symbol.loBound(), ">:"); } diff --git a/sources/scala/tools/scaladoc/SymbolTablePrinterFactory.java b/sources/scala/tools/scaladoc/SymbolTablePrinterFactory.java index ad78902dad..18b2e23915 100644 --- a/sources/scala/tools/scaladoc/SymbolTablePrinterFactory.java +++ b/sources/scala/tools/scaladoc/SymbolTablePrinterFactory.java @@ -33,6 +33,9 @@ class SymbolTablePrinterFactory { public void printSymbol(Symbol sym, boolean addLink) { String name = sym.nameString(); + // remove the leading "?" for names that come from attributes + if (name.startsWith("?")) + name = name.substring(1); if (global.debug) name = sym.name.toString(); if (isDocumented.apply(sym)) if (addLink) diff --git a/sources/scalac/symtab/Modifiers.java b/sources/scalac/symtab/Modifiers.java index 952736083f..173eda4e61 100644 --- a/sources/scalac/symtab/Modifiers.java +++ b/sources/scalac/symtab/Modifiers.java @@ -139,7 +139,7 @@ public interface Modifiers { if (isProtected(flags)) buffer.append("protected "); if (isAbstract(flags)) buffer.append("abstract "); if (isFinal(flags)) buffer.append("final "); - if (isSealed(flags)) buffer.append("qualified "); + if (isSealed(flags)) buffer.append("sealed "); if (isInterface(flags)) buffer.append("interface "); if (isCase(flags)) buffer.append("case "); if (isDef(flags)) buffer.append("def "); |