]> git.proxmox.com Git - pve-eslint.git/blob - eslint/tests/fixtures/code-path-analysis/class-static-blocks--between-fields.js
import 8.3.0 source
[pve-eslint.git] / eslint / tests / fixtures / code-path-analysis / class-static-blocks--between-fields.js
1 /*expected
2 initial->s2_1->s2_2->s2_3;
3 s2_1->s2_3->final;
4 */
5 /*expected
6 initial->s3_1->s3_2->s3_3->s3_4;
7 s3_1->s3_4;
8 s3_2->s3_4->final;
9 */
10 /*expected
11 initial->s4_1->s4_2->s4_3->s4_4->s4_5;
12 s4_1->s4_5;
13 s4_2->s4_5;
14 s4_3->s4_5->final;
15 */
16 /*expected
17 initial->s1_1->final;
18 */
19 class Foo { bar = a || b; static { x || y || z } baz = p || q || r || s; }
20
21 /*DOT
22 digraph {
23 node[shape=box,style="rounded,filled",fillcolor=white];
24 initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];
25 final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25];
26 s2_1[label="LogicalExpression:enter\nIdentifier (a)"];
27 s2_2[label="Identifier (b)"];
28 s2_3[label="LogicalExpression:exit"];
29 initial->s2_1->s2_2->s2_3;
30 s2_1->s2_3->final;
31 }
32 digraph {
33 node[shape=box,style="rounded,filled",fillcolor=white];
34 initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];
35 final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25];
36 s3_1[label="StaticBlock:enter\nExpressionStatement:enter\nLogicalExpression:enter\nLogicalExpression:enter\nIdentifier (x)"];
37 s3_2[label="Identifier (y)\nLogicalExpression:exit"];
38 s3_3[label="Identifier (z)"];
39 s3_4[label="LogicalExpression:exit\nExpressionStatement:exit\nStaticBlock:exit"];
40 initial->s3_1->s3_2->s3_3->s3_4;
41 s3_1->s3_4;
42 s3_2->s3_4->final;
43 }
44 digraph {
45 node[shape=box,style="rounded,filled",fillcolor=white];
46 initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];
47 final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25];
48 s4_1[label="LogicalExpression:enter\nLogicalExpression:enter\nLogicalExpression:enter\nIdentifier (p)"];
49 s4_2[label="Identifier (q)\nLogicalExpression:exit"];
50 s4_3[label="Identifier (r)\nLogicalExpression:exit"];
51 s4_4[label="Identifier (s)"];
52 s4_5[label="LogicalExpression:exit"];
53 initial->s4_1->s4_2->s4_3->s4_4->s4_5;
54 s4_1->s4_5;
55 s4_2->s4_5;
56 s4_3->s4_5->final;
57 }
58 digraph {
59 node[shape=box,style="rounded,filled",fillcolor=white];
60 initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];
61 final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25];
62 s1_1[label="Program:enter\nClassDeclaration:enter\nIdentifier (Foo)\nClassBody:enter\nPropertyDefinition:enter\nIdentifier (bar)\nLogicalExpression\nPropertyDefinition:exit\nStaticBlock\nPropertyDefinition:enter\nIdentifier (baz)\nLogicalExpression\nPropertyDefinition:exit\nClassBody:exit\nClassDeclaration:exit\nProgram:exit"];
63 initial->s1_1->final;
64 }
65 */