Browse Source

fix #318

pull/320/merge
Siegfried Pammer 13 years ago
parent
commit
8fafda2753
  1. 2
      ICSharpCode.Decompiler/Ast/TextOutputFormatter.cs

2
ICSharpCode.Decompiler/Ast/TextOutputFormatter.cs

@ -282,7 +282,7 @@ namespace ICSharpCode.Decompiler.Ast @@ -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<MemberReference>() != null && node.GetChildByRole(AstNode.Roles.Identifier).IsNull)
output.WriteDefinition("", node.Annotation<MemberReference>(), false);
MemberMapping mapping = node.Annotation<MemberMapping>();

Loading…
Cancel
Save