From c2d33c65850de429a701a6009fe88e67eebc0fb1 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 23 Sep 2009 20:18:52 +0000 Subject: 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.) --- src/compiler/scala/tools/nsc/doc/ModelToXML.scala | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/compiler') 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) ++
)}) - seq - } + def toGroup(x: AnnotationInfo): Node = Group(Text("@") ++ attrFor(x) ++
) + if (entity.sym.hasFlag(symtab.Flags.CASE)) NodeSeq.Empty + else NodeSeq fromSeq (entity.attributes map toGroup) } } -- cgit v1.2.3