@ -563,8 +563,8 @@ namespace ICSharpCode.Decompiler.CSharp.OutputVisitor
@@ -563,8 +563,8 @@ namespace ICSharpCode.Decompiler.CSharp.OutputVisitor
WriteKeyword ( AnonymousMethodExpression . DelegateKeywordRole ) ;
if ( anonymousMethodExpression . HasParameterList )
{
Space ( policy . SpaceBeforeMethodDeclaration Parentheses ) ;
WriteCommaSeparatedListInParenthesis ( anonymousMethodExpression . Parameters , policy . SpaceWithinMethodDeclaration Parentheses ) ;
Space ( policy . SpaceBeforeAnonymous MethodParentheses ) ;
WriteCommaSeparatedListInParenthesis ( anonymousMethodExpression . Parameters , policy . SpaceWithinAnonymous MethodParentheses ) ;
}
WriteBlock ( anonymousMethodExpression . Body , policy . AnonymousMethodBraceStyle ) ;
EndNode ( anonymousMethodExpression ) ;
@ -1407,6 +1407,11 @@ namespace ICSharpCode.Decompiler.CSharp.OutputVisitor
@@ -1407,6 +1407,11 @@ namespace ICSharpCode.Decompiler.CSharp.OutputVisitor
switch ( attributeSection . Parent )
{
case ParameterDeclaration _ :
if ( attributeSection . NextSibling is AttributeSection )
Space ( policy . SpaceBetweenParameterAttributeSections ) ;
else
Space ( ) ;
break ;
case TypeParameterDeclaration _ :
case ComposedType _ :
Space ( ) ;
@ -1916,14 +1921,14 @@ namespace ICSharpCode.Decompiler.CSharp.OutputVisitor
@@ -1916,14 +1921,14 @@ namespace ICSharpCode.Decompiler.CSharp.OutputVisitor
switchExpression . Expression . AcceptVisitor ( this ) ;
Space ( ) ;
WriteKeyword ( SwitchExpression . SwitchKeywordRole ) ;
OpenBrace ( BraceStyle . EndOfLin e) ;
OpenBrace ( policy . StatementBraceStyl e) ;
foreach ( AstNode node in switchExpression . SwitchSections )
{
node . AcceptVisitor ( this ) ;
Comma ( node ) ;
NewLine ( ) ;
}
CloseBrace ( BraceStyle . EndOfLin e) ;
CloseBrace ( policy . StatementBraceStyl e) ;
EndNode ( switchExpression ) ;
}