diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2017-02-14 21:31:13 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2017-02-22 21:30:20 +0100 |
commit | 18c673073c29641cdd8386253ee34d7e4007b3b1 (patch) | |
tree | 8b00299367409c3133698594d95db0cc71578299 /doc-tool/src/dotty/tools/dottydoc/core/DocASTPhase.scala | |
parent | 859aca9616aaeebf918c642da4610669b3c00b2d (diff) | |
download | dotty-18c673073c29641cdd8386253ee34d7e4007b3b1.tar.gz dotty-18c673073c29641cdd8386253ee34d7e4007b3b1.tar.bz2 dotty-18c673073c29641cdd8386253ee34d7e4007b3b1.zip |
Add some basic stats to ddoc
Diffstat (limited to 'doc-tool/src/dotty/tools/dottydoc/core/DocASTPhase.scala')
-rw-r--r-- | doc-tool/src/dotty/tools/dottydoc/core/DocASTPhase.scala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/doc-tool/src/dotty/tools/dottydoc/core/DocASTPhase.scala b/doc-tool/src/dotty/tools/dottydoc/core/DocASTPhase.scala index 460566838..7f44c5656 100644 --- a/doc-tool/src/dotty/tools/dottydoc/core/DocASTPhase.scala +++ b/doc-tool/src/dotty/tools/dottydoc/core/DocASTPhase.scala @@ -226,7 +226,7 @@ class DocASTPhase extends Phase { override def run(implicit ctx: Context): Unit = { currentRun += 1 - ctx.docbase.echo(s"Compiling ($currentRun/$totalRuns): ${ctx.compilationUnit.source.file.name}") + ctx.echo(s"Compiling ($currentRun/$totalRuns): ${ctx.compilationUnit.source.file.name}") collect(ctx.compilationUnit.tpdTree) // Will put packages in `packages` var } @@ -237,8 +237,7 @@ class DocASTPhase extends Phase { // (2) Set parents of entities, needed for linking for { - parentName <- rootPackages(packages) - parent = packages(parentName) + parent <- rootPackages(packages) child <- parent.members } setParent(child, to = parent) |