Browse Source

OutputVisitor bugfix: show return type for custom events.

newNRvisualizers
Daniel Grunwald 15 years ago
parent
commit
379063a5d8
  1. 3
      ICSharpCode.NRefactory/CSharp/OutputVisitor/OutputVisitor.cs

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

@ -1689,6 +1689,7 @@ namespace ICSharpCode.NRefactory.CSharp
WriteModifiers(eventDeclaration.ModifierTokens); WriteModifiers(eventDeclaration.ModifierTokens);
WriteKeyword("event"); WriteKeyword("event");
eventDeclaration.ReturnType.AcceptVisitor(this, data); eventDeclaration.ReturnType.AcceptVisitor(this, data);
Space();
WriteCommaSeparatedList(eventDeclaration.Variables); WriteCommaSeparatedList(eventDeclaration.Variables);
Semicolon(); Semicolon();
return EndNode(eventDeclaration); return EndNode(eventDeclaration);
@ -1700,6 +1701,8 @@ namespace ICSharpCode.NRefactory.CSharp
WriteAttributes(customEventDeclaration.Attributes); WriteAttributes(customEventDeclaration.Attributes);
WriteModifiers(customEventDeclaration.ModifierTokens); WriteModifiers(customEventDeclaration.ModifierTokens);
WriteKeyword("event"); WriteKeyword("event");
customEventDeclaration.ReturnType.AcceptVisitor(this, data);
Space();
WritePrivateImplementationType(customEventDeclaration.PrivateImplementationType); WritePrivateImplementationType(customEventDeclaration.PrivateImplementationType);
WriteIdentifier(customEventDeclaration.Name); WriteIdentifier(customEventDeclaration.Name);
OpenBrace(policy.EventBraceStyle); OpenBrace(policy.EventBraceStyle);

Loading…
Cancel
Save