]> git.proxmox.com Git - pve-eslint.git/blob - eslint/tests/fixtures/code-path-analysis/for--continue-simple-no-test.js
first commit
[pve-eslint.git] / eslint / tests / fixtures / code-path-analysis / for--continue-simple-no-test.js
1 /*expected
2 initial->s1_1->s1_3->s1_4->s1_2->s1_3->s1_6->s1_2;
3 s1_4->s1_5->s1_6->s1_7;
4 */
5 for (var i = 0; ; ++i) {
6 if (b) {
7 continue;
8 }
9 foo();
10 }
11
12 /*DOT
13 digraph {
14 node[shape=box,style="rounded,filled",fillcolor=white];
15 initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];
16 s1_1[label="Program\nForStatement\nVariableDeclaration\nVariableDeclarator\nIdentifier (i)\nLiteral (0)"];
17 s1_3[label="BlockStatement\nIfStatement\nIdentifier (b)"];
18 s1_4[label="BlockStatement\nContinueStatement"];
19 s1_2[label="UpdateExpression\nIdentifier (i)"];
20 s1_6[label="ExpressionStatement\nCallExpression\nIdentifier (foo)"];
21 s1_5[style="rounded,dashed,filled",fillcolor="#FF9800",label="<<unreachable>>\nBlockStatement:exit"];
22 s1_7[style="rounded,dashed,filled",fillcolor="#FF9800",label="<<unreachable>>\nForStatement:exit\nProgram:exit"];
23 initial->s1_1->s1_3->s1_4->s1_2->s1_3->s1_6->s1_2;
24 s1_4->s1_5->s1_6->s1_7;
25 }
26 */