diff options
author | Paul Phillips <paulp@improving.org> | 2009-09-23 20:18:52 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-09-23 20:18:52 +0000 |
commit | c2d33c65850de429a701a6009fe88e67eebc0fb1 (patch) | |
tree | 1df3b5e5733e73ae2e0909aaf92398dda3cd7049 /src/compiler | |
parent | 2c5bd20a7e5c912f62d88f1ba4ff288f19049be3 (diff) | |
download | scala-c2d33c65850de429a701a6009fe88e67eebc0fb1.tar.gz scala-c2d33c65850de429a701a6009fe88e67eebc0fb1.tar.bz2 scala-c2d33c65850de429a701a6009fe88e67eebc0fb1.zip |
The results of examining many instances of !!! ...
The results of examining many instances of !!! and seeing what I can do
about rendering them less exclamatory. It is not completely out of the
realm of possibility that I have calmed down something which would best
have remained excited, but I am endeavoring to be more "daring" (in the
words of the BAFL.)
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/doc/ModelToXML.scala | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/ModelToXML.scala b/src/compiler/scala/tools/nsc/doc/ModelToXML.scala index 8e9f062fa7..3682266a41 100644 --- a/src/compiler/scala/tools/nsc/doc/ModelToXML.scala +++ b/src/compiler/scala/tools/nsc/doc/ModelToXML.scala @@ -362,13 +362,8 @@ trait ModelToXML extends ModelExtractor { } Group(name ++ Text(buf.toString)) } - if (entity.sym.hasFlag(symtab.Flags.CASE)) NodeSeq.Empty; - else { - val sep = Text("@") - val seq = // !!! does it still get confused otherwise? - for (attr <- entity.attributes) - yield Group({(sep ++ attrFor(attr) ++ <br/>)}) - seq - } + def toGroup(x: AnnotationInfo): Node = Group(Text("@") ++ attrFor(x) ++ <br/>) + if (entity.sym.hasFlag(symtab.Flags.CASE)) NodeSeq.Empty + else NodeSeq fromSeq (entity.attributes map toGroup) } } |