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