From 379063a5d8b811b1a767e7c6312dd6d070deeacc Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Sun, 20 Feb 2011 15:24:35 +0100 Subject: [PATCH] OutputVisitor bugfix: show return type for custom events. --- ICSharpCode.NRefactory/CSharp/OutputVisitor/OutputVisitor.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ICSharpCode.NRefactory/CSharp/OutputVisitor/OutputVisitor.cs b/ICSharpCode.NRefactory/CSharp/OutputVisitor/OutputVisitor.cs index 42f049978b..19499ecc6f 100644 --- a/ICSharpCode.NRefactory/CSharp/OutputVisitor/OutputVisitor.cs +++ b/ICSharpCode.NRefactory/CSharp/OutputVisitor/OutputVisitor.cs @@ -1689,6 +1689,7 @@ namespace ICSharpCode.NRefactory.CSharp WriteModifiers(eventDeclaration.ModifierTokens); WriteKeyword("event"); eventDeclaration.ReturnType.AcceptVisitor(this, data); + Space(); WriteCommaSeparatedList(eventDeclaration.Variables); Semicolon(); return EndNode(eventDeclaration); @@ -1700,6 +1701,8 @@ namespace ICSharpCode.NRefactory.CSharp WriteAttributes(customEventDeclaration.Attributes); WriteModifiers(customEventDeclaration.ModifierTokens); WriteKeyword("event"); + customEventDeclaration.ReturnType.AcceptVisitor(this, data); + Space(); WritePrivateImplementationType(customEventDeclaration.PrivateImplementationType); WriteIdentifier(customEventDeclaration.Name); OpenBrace(policy.EventBraceStyle);