diff options
author | cremet <cremet@epfl.ch> | 2004-06-04 08:17:39 +0000 |
---|---|---|
committer | cremet <cremet@epfl.ch> | 2004-06-04 08:17:39 +0000 |
commit | 41ccf7eea1c814bcb25d412558807c2969b968f0 (patch) | |
tree | 80ea8d7f836abdd79272b8f4118c35f43ee1df0e /sources | |
parent | 790ea6458ac5de7eb7d1114a6638b24384fa3427 (diff) | |
download | scala-41ccf7eea1c814bcb25d412558807c2969b968f0.tar.gz scala-41ccf7eea1c814bcb25d412558807c2969b968f0.tar.bz2 scala-41ccf7eea1c814bcb25d412558807c2969b968f0.zip |
- I added a filter to symbols to be documented ...
- I added a filter to symbols to be documented in order to avoid to
treat non-existent generated symbols.
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scala/tools/scaladoc/ScalaSearch.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sources/scala/tools/scaladoc/ScalaSearch.java b/sources/scala/tools/scaladoc/ScalaSearch.java index 6dced243fc..69e07f6f40 100644 --- a/sources/scala/tools/scaladoc/ScalaSearch.java +++ b/sources/scala/tools/scaladoc/ScalaSearch.java @@ -89,12 +89,21 @@ public class ScalaSearch { return (sym.isInitializedMethod() && (sym.flags & Modifiers.STABLE) != 0); } + /** Test if the given symbol is a phantom top-level class or object. + */ + public static boolean isPhantom(Symbol sym) { + return + (sym.isClass() && sym.info().isError()) || + (sym.isModule() && sym.info() == Type.NoType); + } + /** Test if the given symbol is relevant for the documentation. */ public static boolean isRelevant(Symbol sym) { return !isGenerated(sym) && !isLazy(sym) && !isPrivate(sym) && !sym.isConstructor() && - !sym.isCaseFactory() && !isEmptyJavaModule(sym); + !sym.isCaseFactory() && !isEmptyJavaModule(sym) && + !isPhantom(sym); } //////////////////////// SCOPE ITERATOR ////////////////////////////// |