diff options
author | Donna Malayeri <lindydonna@gmail.com> | 2010-04-26 13:19:46 +0000 |
---|---|---|
committer | Donna Malayeri <lindydonna@gmail.com> | 2010-04-26 13:19:46 +0000 |
commit | 3b24fde83660bf26c1bff4f6ac0240a8c85efa62 (patch) | |
tree | 0d9523c5a9fe1e2368e2327bd7109748ccb6191b | |
parent | 2fd048855d1e36c96c4493a7038bfea2e46319e6 (diff) | |
download | scala-3b24fde83660bf26c1bff4f6ac0240a8c85efa62.tar.gz scala-3b24fde83660bf26c1bff4f6ac0240a8c85efa62.tar.bz2 scala-3b24fde83660bf26c1bff4f6ac0240a8c85efa62.zip |
[scaladoc] Added missing file for previous commit.
-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 ae98ecf1f6..31b932ac53 100644 --- a/src/compiler/scala/tools/nsc/doc/html/HtmlPage.scala +++ b/src/compiler/scala/tools/nsc/doc/html/HtmlPage.scala @@ -215,4 +215,10 @@ abstract class HtmlPage { thisPage => case tpl :: tpls => templateToHtml(tpl) ++ sep ++ templatesToHtml(tpls, sep) } + def docEntityKindToString(ety: DocTemplateEntity) = + if (ety.isTrait) "trait" + else if (ety.isClass) "class" + else if (ety.isObject) "object" + else if (ety.isPackage) "package" + else "class" // FIXME: an entity *should* fall into one of the above categories, but AnyRef is somehow not } |