Browse Source

Add missing annotations to dtors

pull/832/head
Siegfried Pammer 8 years ago
parent
commit
99907d8df3
  1. 1
      ICSharpCode.Decompiler/CSharp/Transforms/PatternStatementTransform.cs

1
ICSharpCode.Decompiler/CSharp/Transforms/PatternStatementTransform.cs

@ -1225,6 +1225,7 @@ namespace ICSharpCode.Decompiler.CSharp.Transforms @@ -1225,6 +1225,7 @@ namespace ICSharpCode.Decompiler.CSharp.Transforms
if (m.Success) {
DestructorDeclaration dd = new DestructorDeclaration();
methodDef.Attributes.MoveTo(dd.Attributes);
dd.CopyAnnotationsFrom(methodDef);
dd.Modifiers = methodDef.Modifiers & ~(Modifiers.Protected | Modifiers.Override);
dd.Body = m.Get<BlockStatement>("body").Single().Detach();
dd.Name = currentTypeDefinition?.Name;

Loading…
Cancel
Save