Browse Source

[Analysis] Fixed control flow generation for null embedded statement

(for statement).
newNRvisualizers
Mike Krüger 13 years ago
parent
commit
5587b77d41
  1. 3
      ICSharpCode.NRefactory.CSharp/Analysis/ControlFlow.cs

3
ICSharpCode.NRefactory.CSharp/Analysis/ControlFlow.cs

@ -599,7 +599,8 @@ namespace ICSharpCode.NRefactory.CSharp.Analysis @@ -599,7 +599,8 @@ namespace ICSharpCode.NRefactory.CSharp.Analysis
ControlFlowNode bodyStart = builder.CreateStartNode(forStatement.EmbeddedStatement);
ControlFlowNode bodyEnd = forStatement.EmbeddedStatement.AcceptVisitor(this, bodyStart);
Connect(bodyEnd, iteratorStart);
if (bodyEnd != null)
Connect(bodyEnd, iteratorStart);
breakTargets.Pop();
continueTargets.Pop();

Loading…
Cancel
Save