From fa70dcb1a524f58c7f96ee76047b8d906bab8a51 Mon Sep 17 00:00:00 2001 From: cremet Date: Tue, 11 Nov 2003 15:39:26 +0000 Subject: - Removed occurrences of "<: Any". --- sources/scala/tools/scaladoc/HTMLGenerator.java | 2 -- sources/scala/tools/scaladoc/SymbolTablePrinter.java | 8 +++++--- sources/scala/tools/scaladoc/TreeSymbols.java | 5 ++++- 3 files changed, 9 insertions(+), 6 deletions(-) (limited to 'sources') diff --git a/sources/scala/tools/scaladoc/HTMLGenerator.java b/sources/scala/tools/scaladoc/HTMLGenerator.java index e46f81ab1f..769cf953eb 100644 --- a/sources/scala/tools/scaladoc/HTMLGenerator.java +++ b/sources/scala/tools/scaladoc/HTMLGenerator.java @@ -1592,6 +1592,4 @@ public class HTMLGenerator { } } } - - //######################################################################## } diff --git a/sources/scala/tools/scaladoc/SymbolTablePrinter.java b/sources/scala/tools/scaladoc/SymbolTablePrinter.java index 704a12e419..e1b49f396a 100644 --- a/sources/scala/tools/scaladoc/SymbolTablePrinter.java +++ b/sources/scala/tools/scaladoc/SymbolTablePrinter.java @@ -107,10 +107,12 @@ public class SymbolTablePrinter extends scalac.symtab.SymbolTablePrinter { */ public String getSymbolInnerString(Symbol symbol) { if (symbol.kind == Kinds.TYPE) - return "<:"; // HTML encoded "<:" symbol + return INNER_LT; // HTML encoded "<:" symbol else return super.getSymbolInnerString(symbol); } + // where + protected String INNER_LT = "<:"; /** * Prints the name of the given symbol usage. @@ -334,8 +336,8 @@ public class SymbolTablePrinter extends scalac.symtab.SymbolTablePrinter { * @param inner */ public SymbolTablePrinter printType(Type type, String inner) { - if ("<:".equals(inner) && type.symbol() == global.definitions.ANY_CLASS || - ">:".equals(inner) && type.symbol() == global.definitions.ALL_CLASS) + if ((INNER_LT.equals(inner) && type.symbol() == global.definitions.ANY_CLASS) || + (">:".equals(inner) && type.symbol() == global.definitions.ALL_CLASS)) return this; else return printType0(getTypeToPrintForType(type), inner); diff --git a/sources/scala/tools/scaladoc/TreeSymbols.java b/sources/scala/tools/scaladoc/TreeSymbols.java index b78236e8bd..79de09900e 100644 --- a/sources/scala/tools/scaladoc/TreeSymbols.java +++ b/sources/scala/tools/scaladoc/TreeSymbols.java @@ -29,7 +29,10 @@ class TreeSymbols { } public boolean contains(Symbol sym) { - return syms.contains(sym); + boolean res = syms.contains(sym); + if (!res && sym.isModuleClass()) + res = contains(sym.module()); + return res; } protected void traverse(Tree[] members) { -- cgit v1.2.3