]> git.proxmox.com Git - pve-eslint.git/blob - eslint/tests/fixtures/code-path-analysis/logical--do-while-qq-1.js
import and build new upstream release 7.2.0
[pve-eslint.git] / eslint / tests / fixtures / code-path-analysis / logical--do-while-qq-1.js
1 /*expected
2 initial->s1_1->s1_2->s1_3->s1_2->s1_2;
3 s1_3->s1_4;
4 s1_2->s1_4->final;
5 */
6 do {
7 foo();
8 } while (a ?? b);
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\nDoWhileStatement"];
16 s1_2[label="BlockStatement\nExpressionStatement\nCallExpression\nIdentifier (foo)\nLogicalExpression\nIdentifier (a)\nIdentifier:exit (foo)\nCallExpression:exit\nExpressionStatement:exit\nBlockStatement:exit\nIdentifier:exit (a)"];
17 s1_3[label="Identifier (b)\nIdentifier:exit (b)\nLogicalExpression:exit"];
18 s1_4[label="DoWhileStatement:exit\nProgram:exit"];
19 initial->s1_1->s1_2->s1_3->s1_2->s1_2;
20 s1_3->s1_4;
21 s1_2->s1_4->final;
22 }
23 */