Browse Source

Add DelegateConstruction to transforms pipeline

pull/728/merge
Siegfried Pammer 9 years ago
parent
commit
7e52b6222b
  1. 3
      ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs
  2. 2
      ICSharpCode.Decompiler/DecompilerSettings.cs

3
ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs

@ -79,8 +79,7 @@ namespace ICSharpCode.Decompiler.CSharp @@ -79,8 +79,7 @@ namespace ICSharpCode.Decompiler.CSharp
//new InlineCompilerGeneratedVariables(),
// -- isn't InlineCompilerGeneratedVariables redundant now that we have variable splitting?
new RemoveDeadVariableInit(), // must run after ExpressionTransforms because it does not handle stobj(ldloca V, ...)
//new DelegateConstruction(),
// DelegateConstruction disabled because its broken since the BlockILTransform change
new DelegateConstruction(),
};
}

2
ICSharpCode.Decompiler/DecompilerSettings.cs

@ -27,7 +27,7 @@ namespace ICSharpCode.Decompiler @@ -27,7 +27,7 @@ namespace ICSharpCode.Decompiler
/// </summary>
public class DecompilerSettings : INotifyPropertyChanged
{
bool anonymousMethods = false;
bool anonymousMethods = true;
/// <summary>
/// Decompile anonymous methods/lambdas.

Loading…
Cancel
Save