diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2010-06-18 12:59:39 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2010-06-18 12:59:39 +0000 |
commit | ceec792d1af5bb7b2d618f27f6fd48cdf75cf92f (patch) | |
tree | 0865edad793ad9b664eb7bf160b8b4c0ee75a407 /src/compiler/scala/tools/nsc/doc/html/HtmlPage.scala | |
parent | 18ad78dd73b29c0c8b34e970c58cd86232cdc4f5 (diff) | |
download | scala-ceec792d1af5bb7b2d618f27f6fd48cdf75cf92f.tar.gz scala-ceec792d1af5bb7b2d618f27f6fd48cdf75cf92f.tar.bz2 scala-ceec792d1af5bb7b2d618f27f6fd48cdf75cf92f.zip |
[scaladoc] Added linear super types.
Diffstat (limited to 'src/compiler/scala/tools/nsc/doc/html/HtmlPage.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/doc/html/HtmlPage.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/html/HtmlPage.scala b/src/compiler/scala/tools/nsc/doc/html/HtmlPage.scala index 1efb56d716..014dee3b20 100644 --- a/src/compiler/scala/tools/nsc/doc/html/HtmlPage.scala +++ b/src/compiler/scala/tools/nsc/doc/html/HtmlPage.scala @@ -200,6 +200,12 @@ abstract class HtmlPage { thisPage => xml.Text(string) } + def typesToHtml(tpess: List[model.TypeEntity], hasLinks: Boolean, sep: NodeSeq): NodeSeq = tpess match { + case Nil => NodeSeq.Empty + case tpe :: Nil => typeToHtml(tpe, hasLinks) + case tpe :: tpes => typeToHtml(tpe, hasLinks) ++ sep ++ typesToHtml(tpes, hasLinks, sep) + } + /** Returns the HTML code that represents the template in `tpl` as a hyperlinked name. */ def templateToHtml(tpl: TemplateEntity) = tpl match { case dTpl: DocTemplateEntity => |