]> git.proxmox.com Git - pve-eslint.git/blob - eslint/tests/fixtures/code-path-analysis/do-while--break-nest.js
first commit
[pve-eslint.git] / eslint / tests / fixtures / code-path-analysis / do-while--break-nest.js
1 /*expected
2 initial->s1_1->s1_2->s1_3->s1_4->s1_5->s1_6->s1_3->s1_6;
3 s1_4->s1_7->s1_2;
4 s1_6->s1_7->s1_8->final;
5 */
6 do {
7 do {
8 if (c) {
9 break;
10 }
11 foo();
12 } while (b);
13 } while (a);
14
15 /*DOT
16 digraph {
17 node[shape=box,style="rounded,filled",fillcolor=white];
18 initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];
19 final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25];
20 s1_1[label="Program\nDoWhileStatement"];
21 s1_2[label="BlockStatement\nDoWhileStatement"];
22 s1_3[label="BlockStatement\nIfStatement\nIdentifier (c)"];
23 s1_4[label="BlockStatement\nBreakStatement"];
24 s1_5[style="rounded,dashed,filled",fillcolor="#FF9800",label="<<unreachable>>\nBlockStatement:exit"];
25 s1_6[label="ExpressionStatement\nCallExpression\nIdentifier (foo)\nIdentifier (b)"];
26 s1_7[label="Identifier (a)"];
27 s1_8[label="DoWhileStatement:exit\nProgram:exit"];
28 initial->s1_1->s1_2->s1_3->s1_4->s1_5->s1_6->s1_3->s1_6;
29 s1_4->s1_7->s1_2;
30 s1_6->s1_7->s1_8->final;
31 }
32 */