diff options
author | michelou <michelou@epfl.ch> | 2007-02-27 19:05:23 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2007-02-27 19:05:23 +0000 |
commit | 54f0202e2940501862e7dff52e82de14aa3fa1ab (patch) | |
tree | 2e51ba743645703de27a2734e992220422b3cbae /src | |
parent | 02488b67974b600132043bfdc8b6a4026e1bd754 (diff) | |
download | scala-54f0202e2940501862e7dff52e82de14aa3fa1ab.tar.gz scala-54f0202e2940501862e7dff52e82de14aa3fa1ab.tar.bz2 scala-54f0202e2940501862e7dff52e82de14aa3fa1ab.zip |
updated annotations in generated doc
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/doc/DocGenerator.scala | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/DocGenerator.scala b/src/compiler/scala/tools/nsc/doc/DocGenerator.scala index 190eb2bbda..13a110601c 100644 --- a/src/compiler/scala/tools/nsc/doc/DocGenerator.scala +++ b/src/compiler/scala/tools/nsc/doc/DocGenerator.scala @@ -340,13 +340,9 @@ abstract class DocGenerator extends Models { } Group(name ++ Text(buf.toString)) } - var res: NodeSeq = Text("[") - val attrs = tree.symbol.attributes - for (val i <- attrs.indices) { - if (i > 0) res = res ++ Text("," + LINE_SEPARATOR) - res = res ++ attrFor(attrs(i)) - } - br(res ++ Text("]")) + val sep = Text("@") + for (val attr <- tree.symbol.attributes) + yield Group(br(sep ++ attrFor(attr))) } /** |