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