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