summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorVlad Ureche <vlad.ureche@gmail.com>2012-04-14 12:07:02 +0200
committerVlad Ureche <vlad.ureche@gmail.com>2012-04-14 12:07:02 +0200
commit651f2219b325c1a4cf586da4cae58e60caec0860 (patch)
tree8a3b5cc5996bbcd73780ce7bb78181c24865d960 /src/compiler
parent3a2901da406f2478b5634b0636e56de9c4cd676d (diff)
downloadscala-651f2219b325c1a4cf586da4cae58e60caec0860.tar.gz
scala-651f2219b325c1a4cf586da4cae58e60caec0860.tar.bz2
scala-651f2219b325c1a4cf586da4cae58e60caec0860.zip
Fixing the docs.scalap breakage
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/doc/model/ModelFactory.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/model/ModelFactory.scala b/src/compiler/scala/tools/nsc/doc/model/ModelFactory.scala
index 9fcd43ac02..124a7509e8 100644
--- a/src/compiler/scala/tools/nsc/doc/model/ModelFactory.scala
+++ b/src/compiler/scala/tools/nsc/doc/model/ModelFactory.scala
@@ -398,11 +398,13 @@ class ModelFactory(val global: Global, val settings: doc.Settings) {
else if (bSym.isPackage)
makeTemplate(bSym.owner) match {
case inPkg: PackageImpl => makePackage(bSym, inPkg) getOrElse (new NoDocTemplateImpl(bSym, inPkg))
+ case inNoDocTpl: NoDocTemplateImpl => new NoDocTemplateImpl(bSym, inNoDocTpl)
case _ => throw new Error("'" + bSym + "' must be in a package")
}
else if (templateShouldDocument(bSym))
makeTemplate(bSym.owner) match {
case inDTpl: DocTemplateImpl => makeDocTemplate(bSym, inDTpl)
+ case inNoDocTpl: NoDocTemplateImpl => new NoDocTemplateImpl(bSym, inNoDocTpl)
case _ => throw new Error("'" + bSym + "' must be in documentable template")
}
else