Browse Source

Merge pull request #2912 from ElektroKill/fix/issue2908

Fix empty parameter names in delegate declarations (fixes #2908)
pull/2934/head
Daniel Grunwald 3 years ago committed by GitHub
parent
commit
dcf3fa0c02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs

5
ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs

@ -1288,6 +1288,11 @@ namespace ICSharpCode.Decompiler.CSharp
{ {
typeSystemAstBuilder = CreateAstBuilder(decompileRun.Settings); typeSystemAstBuilder = CreateAstBuilder(decompileRun.Settings);
var entityDecl = typeSystemAstBuilder.ConvertEntity(typeDef); var entityDecl = typeSystemAstBuilder.ConvertEntity(typeDef);
if (entityDecl is DelegateDeclaration delegateDeclaration)
{
// Fix empty parameter names in delegate declarations
FixParameterNames(delegateDeclaration);
}
var typeDecl = entityDecl as TypeDeclaration; var typeDecl = entityDecl as TypeDeclaration;
if (typeDecl == null) if (typeDecl == null)
{ {

Loading…
Cancel
Save