Browse Source

Fix empty parameter names in delegate declarations (fixes #2908)

pull/2912/head
ElektroKill 2 years ago
parent
commit
feb736a0d5
No known key found for this signature in database
GPG Key ID: 7E3C5C084E40E3EC
  1. 5
      ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs

5
ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs

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

Loading…
Cancel
Save