Files
Toru Nagashima 49d9e4278d Fix: code path analysis and labels (fixes #5171)
Code Path Analysis comes to handle labels with other than loops and
switches correctly.

Before, it has been handling `break` statements on loop contexts and
switch contexts. But now, it's handling `break` statements on
independent `break` contexts.
2016-02-07 02:57:02 +09:00

17 lines
493 B
JavaScript

/*expected
initial->s1_1->final;
*/
A: foo();
bar();
/*DOT
digraph {
node[shape=box,style="rounded,filled",fillcolor=white];
initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];
final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25];
s1_1[label="Program\nLabeledStatement\nIdentifier (A)\nExpressionStatement\nCallExpression\nIdentifier (foo)\nExpressionStatement\nCallExpression\nIdentifier (bar)"];
initial->s1_1->final;
}
*/