diff options
author | Martin Odersky <odersky@gmail.com> | 2009-12-07 17:31:49 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-12-07 17:31:49 +0000 |
commit | 1e88594f358d08b5e9b22ba87280003a581359e4 (patch) | |
tree | e68b6d1095ff1b1345e86d8a67c1f874849a31ff /src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | |
parent | de1d172a15e20ec7e96d96d5cea5cb41162b9f75 (diff) | |
download | scala-1e88594f358d08b5e9b22ba87280003a581359e4.tar.gz scala-1e88594f358d08b5e9b22ba87280003a581359e4.tar.bz2 scala-1e88594f358d08b5e9b22ba87280003a581359e4.zip |
new doc comment generation, including some new ...
new doc comment generation, including some new style doc comments in
collection classes.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/parser/Parsers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala index de71ba30ab..c4c26e54b3 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala @@ -420,13 +420,13 @@ self => */ def joinComment(trees: => List[Tree]): List[Tree] = { val doc = in.flushDoc - if ((doc ne null) && doc._1.length > 0) { + if ((doc ne null) && doc.raw.length > 0) { val ts = trees val main = ts.find(_.pos.isOpaqueRange) ts map { t => - val dd = DocDef(doc._1, t) - val pos = doc._2.withEnd(t.pos.endOrPoint) + val dd = DocDef(doc, t) + val pos = doc.pos.withEnd(t.pos.endOrPoint) dd setPos (if (t eq main) pos else pos.makeTransparent) } } |