summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Furlanetto <pedrofurla@gmail.com>2010-09-15 10:50:45 +0000
committerPedro Furlanetto <pedrofurla@gmail.com>2010-09-15 10:50:45 +0000
commite595d0a130df434ee006911476f087277158308e (patch)
tree5f4036f4791e0ec3a3e1040e046438e24b7443af
parent6c4d41fbcc59ab2080036d7f0ed2f82d4911977d (diff)
downloadscala-e595d0a130df434ee006911476f087277158308e.tar.gz
scala-e595d0a130df434ee006911476f087277158308e.tar.bz2
scala-e595d0a130df434ee006911476f087277158308e.zip
Fixes reporting the number of documentable temp...
Fixes reporting the number of documentable templates. Review by dubochet.
-rw-r--r--src/compiler/scala/tools/nsc/doc/DocFactory.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/DocFactory.scala b/src/compiler/scala/tools/nsc/doc/DocFactory.scala
index 8b800381b8..42b07a917a 100644
--- a/src/compiler/scala/tools/nsc/doc/DocFactory.scala
+++ b/src/compiler/scala/tools/nsc/doc/DocFactory.scala
@@ -52,8 +52,9 @@ class DocFactory(val reporter: Reporter, val settings: doc.Settings) { processor
assert(settings.docformat.value == "html")
if (!reporter.hasErrors) {
val modelFactory = (new model.ModelFactory(compiler, settings) with model.comment.CommentFactory with model.TreeFactory)
+ val madeModel = Some(modelFactory.makeModel)
println("model contains " + modelFactory.templatesCount + " documentable templates")
- Some(modelFactory.makeModel)
+ madeModel
}
else None
}