diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2010-01-25 14:23:36 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2010-01-25 14:23:36 +0000 |
commit | 34bc787b0884dda9e6ad0a75f66ea88b43d8304e (patch) | |
tree | 9c83e92b2aa6ff3a64d29ea4a70b59badaf8605d /src | |
parent | f8bcd67d5009e12e8762cca50806ac4486c93711 (diff) | |
download | scala-34bc787b0884dda9e6ad0a75f66ea88b43d8304e.tar.gz scala-34bc787b0884dda9e6ad0a75f66ea88b43d8304e.tar.bz2 scala-34bc787b0884dda9e6ad0a75f66ea88b43d8304e.zip |
[scaladoc] Classes `FunctionX`, `ProductX`, and...
[scaladoc] Classes `FunctionX`, `ProductX`, and `TupleX`, for `X`
greater than 2, are not listed. Contributed by Pedro Furlanetto, checked
by dubochet, no review.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/doc/html/page/Index.scala | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/html/page/Index.scala b/src/compiler/scala/tools/nsc/doc/html/page/Index.scala index 59ac4eb105..9b8a30fa62 100644 --- a/src/compiler/scala/tools/nsc/doc/html/page/Index.scala +++ b/src/compiler/scala/tools/nsc/doc/html/page/Index.scala @@ -32,6 +32,14 @@ class Index(modelRoot: Package) extends HtmlPage { <div id="browser"> <input id="quickflt" type="text" accesskey="/"/> <div id="tpl">{ + def isExcluded(t : DocTemplateEntity) = { + val qname=t.qualifiedName + (qname.startsWith("scala.Tuple") || qname.startsWith("scala.Product") || + qname.startsWith("scala.Function")) && + !(qname=="scala.Function1" || qname=="scala.Function2" || qname=="scala.Function" + || qname=="scala.Product1" || qname=="scala.Product2" || qname=="scala.Product" + || qname=="scala.Tuple1" || qname=="scala.Tuple2") + } def packageElem(pack: model.Package): NodeSeq = { <xml:group> { if (!pack.isRootPackage) @@ -40,7 +48,7 @@ class Index(modelRoot: Package) extends HtmlPage { } <ol class="templates">{ val tpls: Map[String, Seq[DocTemplateEntity]] = - (pack.templates filter (!_.isPackage)) groupBy (_.name) + (pack.templates filter (t => !t.isPackage && !isExcluded(t) )) groupBy (_.name) for (tn <- tpls.keySet.toSeq sortWith (_.toLowerCase < _.toLowerCase)) yield { val entries = tpls(tn) sortWith { (less, more) => less.isTrait || more.isObject } def doEntry(ety: DocTemplateEntity, firstEty: Boolean): NodeSeq = { |