summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVlad Ureche <vlad.ureche@epfl.ch>2014-11-16 00:35:48 -0800
committerVlad Ureche <vlad.ureche@epfl.ch>2014-11-16 00:35:48 -0800
commit459538ff3c13e6354dbf9ce2b5bc4178464dc0b5 (patch)
treefc9c213f103157836ab50db5d5bf01e03bdb052d /src
parentd28d4f49088eb5e0809cbb68655319c68e981caa (diff)
parent50a9c1bc448d976b1a7dbafc38d9ac54674721af (diff)
downloadscala-459538ff3c13e6354dbf9ce2b5bc4178464dc0b5.tar.gz
scala-459538ff3c13e6354dbf9ce2b5bc4178464dc0b5.tar.bz2
scala-459538ff3c13e6354dbf9ce2b5bc4178464dc0b5.zip
Merge pull request #4134 from gourlaysama/wip/t8948-any-disappeared-from-scaladoc
SI-8948 resurrect the scaladoc for Any/AnyRef/Nothing/Null.
Diffstat (limited to 'src')
-rw-r--r--src/scaladoc/scala/tools/nsc/doc/DocParser.scala3
-rw-r--r--src/scaladoc/scala/tools/nsc/doc/model/ModelFactory.scala2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/scaladoc/scala/tools/nsc/doc/DocParser.scala b/src/scaladoc/scala/tools/nsc/doc/DocParser.scala
index 6dc3e5a62b..f03b848af6 100644
--- a/src/scaladoc/scala/tools/nsc/doc/DocParser.scala
+++ b/src/scaladoc/scala/tools/nsc/doc/DocParser.scala
@@ -15,13 +15,14 @@ import DocParser.Parsed
* right after parsing so it can read `DocDefs` from source code which would
* otherwise cause the compiler to go haywire.
*/
-class DocParser(settings: nsc.Settings, reporter: Reporter) extends Global(settings, reporter) {
+class DocParser(settings: nsc.Settings, reporter: Reporter) extends Global(settings, reporter) with ScaladocGlobalTrait {
def this(settings: Settings) = this(settings, new ConsoleReporter(settings))
def this() = this(new Settings(Console println _))
// the usual global initialization
locally { new Run() }
+ override def forScaladoc = true
override protected def computeInternalPhases() {
phasesSet += syntaxAnalyzer
}
diff --git a/src/scaladoc/scala/tools/nsc/doc/model/ModelFactory.scala b/src/scaladoc/scala/tools/nsc/doc/model/ModelFactory.scala
index 7a67055ffa..7289edc137 100644
--- a/src/scaladoc/scala/tools/nsc/doc/model/ModelFactory.scala
+++ b/src/scaladoc/scala/tools/nsc/doc/model/ModelFactory.scala
@@ -313,7 +313,7 @@ class ModelFactory(val global: Global, val settings: doc.Settings) {
/* Subclass cache */
private lazy val subClassesCache = (
- if (sym == AnyRefClass) null
+ if (sym == AnyRefClass || sym == AnyClass) null
else mutable.ListBuffer[DocTemplateEntity]()
)
def registerSubClass(sc: DocTemplateEntity): Unit = {