diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-03-14 08:44:12 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-03-14 10:45:31 +0100 |
commit | c70292627c50adbbd5c4118a01a34bd7c23ba6b6 (patch) | |
tree | 8ee79961bf88179c340b3f18fdd374cea2887903 /src/scaladoc/scala/tools/nsc/doc/html/page/Entity.scala | |
parent | ac8c6e8f3a8f33d5987fc1fa320b3def5373a504 (diff) | |
download | scala-c70292627c50adbbd5c4118a01a34bd7c23ba6b6.tar.gz scala-c70292627c50adbbd5c4118a01a34bd7c23ba6b6.tar.bz2 scala-c70292627c50adbbd5c4118a01a34bd7c23ba6b6.zip |
Remove unused classes from Scaladoc
Several elements of the old Scaladoc are not in use anymore. To help
with any reverting, the removal of these is done in a single commit
(this one).
The removal includes:
- Old `Index`, the old top "index.html"
- The letter index (with "_" and "deprecated")
- The old `Template` which is superceded by `Entity`
Diffstat (limited to 'src/scaladoc/scala/tools/nsc/doc/html/page/Entity.scala')
-rw-r--r-- | src/scaladoc/scala/tools/nsc/doc/html/page/Entity.scala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/scaladoc/scala/tools/nsc/doc/html/page/Entity.scala b/src/scaladoc/scala/tools/nsc/doc/html/page/Entity.scala index 55a85474f6..6c8f989b8c 100644 --- a/src/scaladoc/scala/tools/nsc/doc/html/page/Entity.scala +++ b/src/scaladoc/scala/tools/nsc/doc/html/page/Entity.scala @@ -585,7 +585,7 @@ trait EntityPage extends HtmlPage { <br/> ++ scala.xml.Text("To access this member you can use a ") ++ <a href="http://stackoverflow.com/questions/2087250/what-is-the-purpose-of-type-ascription-in-scala" target="_blank">type ascription</a> ++ scala.xml.Text(":") ++ - <br/> ++ <div class="cmt"><pre>{"(" + Template.lowerFirstLetter(tpl.name) + ": " + conv.targetType.name + ")." + mbr.name + params }</pre></div> + <br/> ++ <div class="cmt"><pre>{"(" + EntityPage.lowerFirstLetter(tpl.name) + ": " + conv.targetType.name + ")." + mbr.name + params }</pre></div> } val shadowingWarning: NodeSeq = @@ -1129,4 +1129,8 @@ object EntityPage { def tpl = docTpl def reporter = rep } + + /* Vlad: Lesson learned the hard way: don't put any stateful code that references the model here, + * it won't be garbage collected and you'll end up filling the heap with garbage */ + def lowerFirstLetter(s: String) = if (s.length >= 1) s.substring(0,1).toLowerCase() + s.substring(1) else s } |