summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ast/DocComments.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/DocComments.scala')
-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.