Browse Source

Fix formatting

pull/2844/head
ElektroKill 3 years ago
parent
commit
7c73517892
No known key found for this signature in database
GPG Key ID: 7E3C5C084E40E3EC
  1. 6
      ICSharpCode.Decompiler/IL/Transforms/CachedDelegateInitialization.cs

6
ICSharpCode.Decompiler/IL/Transforms/CachedDelegateInitialization.cs

@ -257,7 +257,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms @@ -257,7 +257,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms
if (trueInst.Instructions.Count != 1 || falseInst.Instructions.Count != 1)
return false;
if (!(trueInst.Instructions[0].MatchStLoc(out var s, out var trueInitValue)
&& falseInst.Instructions[0].MatchStLoc(s, out var falseInitValue)))
&& falseInst.Instructions[0].MatchStLoc(s, out var falseInitValue)))
{
return false;
}
@ -268,8 +268,8 @@ namespace ICSharpCode.Decompiler.IL.Transforms @@ -268,8 +268,8 @@ namespace ICSharpCode.Decompiler.IL.Transforms
if (!(stobj.Value is NewObj delegateConstruction))
return false;
if (!stobj.Target.MatchLdFlda(out var target1, out var field1)
|| !ldobj.Target.MatchLdFlda(out var target2, out var field2)
|| !field1.Equals(field2) || !target1.Match(target2).Success)
|| !ldobj.Target.MatchLdFlda(out var target2, out var field2)
|| !field1.Equals(field2) || !target1.Match(target2).Success)
{
return false;
}

Loading…
Cancel
Save