Browse Source

Run another round of SplitVariables so that the NullableLiftingTransform can work in the switch expression.

pull/887/head
Siegfried Pammer 8 years ago
parent
commit
6ffec75c24
  1. 1
      ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs

1
ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs

@ -84,6 +84,7 @@ namespace ICSharpCode.Decompiler.CSharp @@ -84,6 +84,7 @@ namespace ICSharpCode.Decompiler.CSharp
new SwitchDetection(),
new SwitchOnStringTransform(),
new SwitchOnNullableTransform(),
new SplitVariables(), // split variables once again, because SwitchOnNullableTransform eliminates ldloca
new BlockILTransform { // per-block transforms
PostOrderTransforms = {
// Even though it's a post-order block-transform as most other transforms,

Loading…
Cancel
Save