Browse Source

attributed parameter declaration.

newNRvisualizers
Artur Zgodziski 15 years ago
parent
commit
74fd14a2f5
  1. 2
      ICSharpCode.NRefactory/CSharp/Ast/TypeMembers/ParameterDeclaration.cs
  2. 3
      ICSharpCode.NRefactory/CSharp/OutputVisitor/OutputVisitor.cs

2
ICSharpCode.NRefactory/CSharp/Ast/TypeMembers/ParameterDeclaration.cs

@ -38,7 +38,7 @@ namespace ICSharpCode.NRefactory.CSharp @@ -38,7 +38,7 @@ namespace ICSharpCode.NRefactory.CSharp
This
}
public class ParameterDeclaration : AstNode
public class ParameterDeclaration : AttributedNode
{
public static readonly Role<AttributeSection> AttributeRole = AttributedNode.AttributeRole;
public static readonly Role<CSharpTokenNode> ModifierRole = new Role<CSharpTokenNode>("Modifier", CSharpTokenNode.Null);

3
ICSharpCode.NRefactory/CSharp/OutputVisitor/OutputVisitor.cs

@ -1110,7 +1110,8 @@ namespace ICSharpCode.NRefactory.CSharp @@ -1110,7 +1110,8 @@ namespace ICSharpCode.NRefactory.CSharp
}
WriteCommaSeparatedList(attributeSection.Attributes);
WriteToken("]", AstNode.Roles.RBracket);
NewLine();
if (!(attributeSection.Parent is ParameterDeclaration))
NewLine();
return EndNode(attributeSection);
}

Loading…
Cancel
Save