From ceec792d1af5bb7b2d618f27f6fd48cdf75cf92f Mon Sep 17 00:00:00 2001 From: Gilles Dubochet Date: Fri, 18 Jun 2010 12:59:39 +0000 Subject: [scaladoc] Added linear super types. --- src/compiler/scala/tools/nsc/doc/html/HtmlPage.scala | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/compiler/scala/tools/nsc/doc/html/HtmlPage.scala') 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 => -- cgit v1.2.3