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
//new InlineCompilerGeneratedVariables(), //new InlineCompilerGeneratedVariables(),
// -- isn't InlineCompilerGeneratedVariables redundant now that we have variable splitting? // -- 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 RemoveDeadVariableInit(), // must run after ExpressionTransforms because it does not handle stobj(ldloca V, ...)
//new DelegateConstruction(), new DelegateConstruction(),
// DelegateConstruction disabled because its broken since the BlockILTransform change
}; };
} }

2
ICSharpCode.Decompiler/DecompilerSettings.cs

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

Loading…
Cancel
Save