]> git.proxmox.com Git - pve-eslint.git/blob - eslint/tests/fixtures/code-path-analysis/class-fields-init--call-expression.js
import 8.3.0 source
[pve-eslint.git] / eslint / tests / fixtures / code-path-analysis / class-fields-init--call-expression.js
1 /*expected
2 initial->s2_1->final;
3 */
4 /*expected
5 initial->s1_1->final;
6 */
7
8 class Foo { 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 s2_1[label="CallExpression:enter\nIdentifier (b)\nCallExpression:exit"];
16 initial->s2_1->final;
17 }
18
19 digraph {
20 node[shape=box,style="rounded,filled",fillcolor=white];
21 initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];
22 final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25];
23 s1_1[label="Program:enter\nClassDeclaration:enter\nIdentifier (Foo)\nClassBody:enter\nPropertyDefinition:enter\nIdentifier (a)\nCallExpression\nPropertyDefinition:exit\nClassBody:exit\nClassDeclaration:exit\nProgram:exit"];
24 initial->s1_1->final;
25 }
26 */