Skip to content

Commit 85bea1d

Browse files
committed
fix for issue #17 and better dealing of switch flags
1 parent 637c721 commit 85bea1d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Src/Library/GraphBuilder/ContinueBuilder.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ public void CreateSpecialEdge()
5454
DotEdge specialedge = null;
5555
if (node.label == null)
5656
{
57-
ContinueNode = node.FindNodesUp(x => x is ForeachNode || x is WhileNode || x is DoWhileNode || x is DoUntilNode || x is ForNode);
57+
// fix issue #17
58+
ContinueNode = node.FindNodesUp(x => x is ForeachNode || x is WhileNode || x is DoWhileNode || x is DoUntilNode || x is ForNode || x is SwitchNode);
5859
specialedge = new DotEdge(node.Id,ContinueNode.Id);
59-
specialedge.Label = $"Continue To {node.Label}";
60+
// specialedge.Label = $"Continue To {node.Label}";
61+
specialedge.Label = $"Continue to next element";
6062

6163
} else {
6264
ContinueNode = node.FindNodesUp(x => x.label == node.label);

0 commit comments

Comments
 (0)