]> git.proxmox.com Git - pve-eslint.git/blob - eslint/tests/fixtures/code-path-analysis/optional-chaining--simple-4.js
import 7.12.1 upstream release
[pve-eslint.git] / eslint / tests / fixtures / code-path-analysis / optional-chaining--simple-4.js
1 /*expected
2 initial->s1_1->s1_2->s1_3;
3 s1_1->s1_3->final;
4 */
5
6 func?.()(arg)
7
8 /*DOT
9 digraph {
10 node[shape=box,style="rounded,filled",fillcolor=white];
11 initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];
12 final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25];
13 s1_1[label="Program:enter\nExpressionStatement:enter\nChainExpression:enter\nCallExpression:enter\nCallExpression:enter\nIdentifier (func)\nCallExpression:exit"];
14 s1_2[label="Identifier (arg)\nCallExpression:exit"];
15 s1_3[label="ChainExpression:exit\nExpressionStatement:exit\nProgram:exit"];
16 initial->s1_1->s1_2->s1_3;
17 s1_1->s1_3->final;
18 }
19 */