summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ast
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2016-06-22 18:25:46 -0700
committerJakob Odersky <jakob@odersky.com>2016-06-22 18:25:46 -0700
commitd17aeef7ac428479f53a3bc72eca0716bf30ecfd (patch)
treee0a298f7ceb4421af876a4884bb567e414dee128 /src/compiler/scala/tools/nsc/ast
parenteece2d3730f62b0f9cb20f4c97a004c3bb2c3323 (diff)
downloadscala-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.scala11
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.