]> git.proxmox.com Git - pve-eslint.git/blob - eslint/tests/fixtures/code-path-analysis/do-while--continue-simple.js
first commit
[pve-eslint.git] / eslint / tests / fixtures / code-path-analysis / do-while--continue-simple.js
1 /*expected
2 initial->s1_1->s1_2->s1_3->s1_4->s1_5->s1_6->s1_2->s1_5;
3 s1_3->s1_6->s1_7->final;
4 */
5 do {
6 if (b) {
7 continue;
8 }
9 foo();
10 } while (a);
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 final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25];
17 s1_1[label="Program\nDoWhileStatement"];
18 s1_2[label="BlockStatement\nIfStatement\nIdentifier (b)"];
19 s1_3[label="BlockStatement\nContinueStatement"];
20 s1_4[style="rounded,dashed,filled",fillcolor="#FF9800",label="<<unreachable>>\nBlockStatement:exit"];
21 s1_5[label="ExpressionStatement\nCallExpression\nIdentifier (foo)"];
22 s1_6[label="Identifier (a)"];
23 s1_7[label="DoWhileStatement:exit\nProgram:exit"];
24 initial->s1_1->s1_2->s1_3->s1_4->s1_5->s1_6->s1_2->s1_5;
25 s1_3->s1_6->s1_7->final;
26 }
27 */