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