diff options
author | Jakob Odersky <jakob@odersky.com> | 2016-06-22 18:25:46 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2016-06-22 18:25:46 -0700 |
commit | d17aeef7ac428479f53a3bc72eca0716bf30ecfd (patch) | |
tree | e0a298f7ceb4421af876a4884bb567e414dee128 /src/compiler/scala/tools/nsc/ast | |
parent | eece2d3730f62b0f9cb20f4c97a004c3bb2c3323 (diff) | |
download | scala-d17aeef7ac428479f53a3bc72eca0716bf30ecfd.tar.gz scala-d17aeef7ac428479f53a3bc72eca0716bf30ecfd.tar.bz2 scala-d17aeef7ac428479f53a3bc72eca0716bf30ecfd.zip |
Add dummy javadoc typer and instrumentationwip-javadoc
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/DocComments.scala | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/DocComments.scala b/src/compiler/scala/tools/nsc/ast/DocComments.scala index c70690e697..15dee81e77 100644 --- a/src/compiler/scala/tools/nsc/ast/DocComments.scala +++ b/src/compiler/scala/tools/nsc/ast/DocComments.scala @@ -74,7 +74,7 @@ trait DocComments { self: Global => else DocComment(docStr).template ownComment = replaceInheritDocToInheritdoc(ownComment) - superComment(sym) match { + val c = superComment(sym) match { case None => // SI-8210 - The warning would be false negative when this symbol is a setter if (ownComment.indexOf("@inheritdoc") != -1 && ! sym.isSetter) @@ -84,6 +84,15 @@ trait DocComments { self: Global => if (ownComment == "") sc else expandInheritdoc(sc, merge(sc, ownComment, sym), sym) } + if (sym.toString.contains("magic")) { + println("all cooked comments: ") + docComments.foreach{d => + println(d) + } + println("cooked comment for " + sym + ": " + c) + } + + c }) /** The cooked doc comment of symbol `sym` after variable expansion, or "" if missing. |