Skip to content

Commit

Permalink
Use extern modifier for non-abstract methods that don't have a body. C…
Browse files Browse the repository at this point in the history
…loses #21.
  • Loading branch information
dgrunwald committed Feb 21, 2011
1 parent 91b3388 commit d758ba1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ICSharpCode.Decompiler/Ast/AstBuilder.cs
Expand Up @@ -408,6 +408,9 @@ Modifiers ConvertModifiers(MethodDefinition methodDef)
else
modifiers |= Modifiers.Override;
}
if (!methodDef.HasBody && !methodDef.IsAbstract)
modifiers |= Modifiers.Extern;

return modifiers;
}
#endregion
Expand Down

0 comments on commit d758ba1

Please sign in to comment.