Browse Source

Write attribute target as keyword instead of identifier

pull/728/head
Daniel Grunwald 10 years ago
parent
commit
989a2c49c8
  1. 2
      NRefactory/ICSharpCode.NRefactory.CSharp/OutputVisitor/CSharpOutputVisitor.cs

2
NRefactory/ICSharpCode.NRefactory.CSharp/OutputVisitor/CSharpOutputVisitor.cs

@ -1160,7 +1160,7 @@ namespace ICSharpCode.NRefactory.CSharp
StartNode(attributeSection); StartNode(attributeSection);
WriteToken(Roles.LBracket); WriteToken(Roles.LBracket);
if (!string.IsNullOrEmpty(attributeSection.AttributeTarget)) { if (!string.IsNullOrEmpty(attributeSection.AttributeTarget)) {
WriteIdentifier(attributeSection.AttributeTargetToken); WriteKeyword(attributeSection.AttributeTarget, Roles.Identifier);
WriteToken(Roles.Colon); WriteToken(Roles.Colon);
Space(); Space();
} }

Loading…
Cancel
Save