Browse Source

Disable DelegateConstruction; it's currently broken

pull/734/head
Daniel Grunwald 9 years ago
parent
commit
ff4748f67a
  1. 3
      ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs
  2. 2
      ICSharpCode.Decompiler/Tests/RoundtripAssembly.cs

3
ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs

@ -64,7 +64,7 @@ namespace ICSharpCode.Decompiler.CSharp @@ -64,7 +64,7 @@ namespace ICSharpCode.Decompiler.CSharp
new InlineCompilerGeneratedVariables(),
new ExpressionTransforms(), // must run once before "the loop" to allow RemoveDeadVariablesInit
new RemoveDeadVariableInit(), // must run after ExpressionTransforms because it does not handle stobj(ldloca V, ...)
new DelegateConstruction(),
//new DelegateConstruction(), causes assertions in NR.CSharp roundtrip
new LoopingTransform( // the loop: transforms that cyclicly depend on each other
new ExpressionTransforms(),
new TransformArrayInitializers(),
@ -74,7 +74,6 @@ namespace ICSharpCode.Decompiler.CSharp @@ -74,7 +74,6 @@ namespace ICSharpCode.Decompiler.CSharp
}
List<IAstTransform> astTransforms = new List<IAstTransform> {
//new PushNegation(),
new PatternStatementTransform(),
new ReplaceMethodCallsWithOperators(),
new IntroduceUnsafeModifier(),

2
ICSharpCode.Decompiler/Tests/RoundtripAssembly.cs

@ -41,7 +41,7 @@ namespace ICSharpCode.Decompiler.Tests @@ -41,7 +41,7 @@ namespace ICSharpCode.Decompiler.Tests
RunWithTest("Mono.Cecil-net45", "Mono.Cecil.dll", "Mono.Cecil.Tests.dll");
}
[Test]
[Test, Ignore("Needs compound assignment")]
public void NewtonsoftJson_net40()
{
RunWithTest("Newtonsoft.Json-net40", "Newtonsoft.Json.dll", "Newtonsoft.Json.Tests.dll");

Loading…
Cancel
Save