Browse Source

Remove "Attribute" suffix and add support for attributes on type parameters.

newNRvisualizers
Daniel Grunwald 15 years ago
parent
commit
0c9b5cb03a
  1. 4
      ICSharpCode.NRefactory/CSharp/OutputVisitor/OutputVisitor.cs

4
ICSharpCode.NRefactory/CSharp/OutputVisitor/OutputVisitor.cs

@ -1135,7 +1135,9 @@ namespace ICSharpCode.NRefactory.CSharp @@ -1135,7 +1135,9 @@ namespace ICSharpCode.NRefactory.CSharp
}
WriteCommaSeparatedList(attributeSection.Attributes.SafeCast<Attribute, AstNode>());
WriteToken("]", AstNode.Roles.RBracket);
if (!(attributeSection.Parent is ParameterDeclaration))
if (attributeSection.Parent is ParameterDeclaration || attributeSection.Parent is TypeParameterDeclaration)
Space();
else
NewLine();
return EndNode(attributeSection);
}

Loading…
Cancel
Save