From 8fafda27533f40a6a2a0b4be6c7574bbc8bb6556 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sat, 3 Mar 2012 16:11:00 +0100 Subject: [PATCH] fix #318 --- ICSharpCode.Decompiler/Ast/TextOutputFormatter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ICSharpCode.Decompiler/Ast/TextOutputFormatter.cs b/ICSharpCode.Decompiler/Ast/TextOutputFormatter.cs index 26bd784e2..a8c14f9f3 100644 --- a/ICSharpCode.Decompiler/Ast/TextOutputFormatter.cs +++ b/ICSharpCode.Decompiler/Ast/TextOutputFormatter.cs @@ -282,7 +282,7 @@ namespace ICSharpCode.Decompiler.Ast nodeStack.Push(node); startLocations.Push(output.Location); - if (node is AttributedNode && node.GetChildByRole(AstNode.Roles.Identifier).IsNull) + if (node is AttributedNode && node.Annotation() != null && node.GetChildByRole(AstNode.Roles.Identifier).IsNull) output.WriteDefinition("", node.Annotation(), false); MemberMapping mapping = node.Annotation();