Browse Source

Remove using-specific code from DeclareVariables.ResolveCollisions

pull/877/head
Siegfried Pammer 8 years ago
parent
commit
c64ce76047
  1. 2
      ICSharpCode.Decompiler/CSharp/Transforms/DeclareVariables.cs

2
ICSharpCode.Decompiler/CSharp/Transforms/DeclareVariables.cs

@ -314,8 +314,6 @@ namespace ICSharpCode.Decompiler.CSharp.Transforms @@ -314,8 +314,6 @@ namespace ICSharpCode.Decompiler.CSharp.Transforms
while (!(v.InsertionPoint.nextNode.Parent is BlockStatement)) {
if (v.InsertionPoint.nextNode.Parent is ForStatement f && v.InsertionPoint.nextNode == f.Initializers.FirstOrDefault() && IsMatchingAssignment(v, out _))
break;
if (v.InsertionPoint.nextNode.Parent is UsingStatement u && v.InsertionPoint.nextNode == u.ResourceAcquisition && IsMatchingAssignment(v, out _))
break;
v.InsertionPoint = v.InsertionPoint.Up();
}

Loading…
Cancel
Save