Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-properties/arguments-in-nested-class/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":76,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":76}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":76,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":76}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":76,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":76}},
13 "id": {
14 "type": "Identifier",
15 "start":9,"end":11,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":11,"index":11},"identifierName":"fn"},
16 "name": "fn"
17 },
18 "generator": false,
19 "async": false,
20 "params": [],
21 "body": {
22 "type": "BlockStatement",
23 "start":14,"end":76,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":5,"column":1,"index":76}},
24 "body": [
25 {
26 "type": "ClassDeclaration",
27 "start":18,"end":74,"loc":{"start":{"line":2,"column":2,"index":18},"end":{"line":4,"column":3,"index":74}},
28 "id": {
29 "type": "Identifier",
30 "start":24,"end":25,"loc":{"start":{"line":2,"column":8,"index":24},"end":{"line":2,"column":9,"index":25},"identifierName":"A"},
31 "name": "A"
32 },
33 "superClass": null,
34 "body": {
35 "type": "ClassBody",
36 "start":26,"end":74,"loc":{"start":{"line":2,"column":10,"index":26},"end":{"line":4,"column":3,"index":74}},
37 "body": [
38 {
39 "type": "ClassProperty",
40 "start":32,"end":70,"loc":{"start":{"line":3,"column":4,"index":32},"end":{"line":3,"column":42,"index":70}},
41 "static": false,
42 "key": {
43 "type": "Identifier",
44 "start":32,"end":35,"loc":{"start":{"line":3,"column":4,"index":32},"end":{"line":3,"column":7,"index":35},"identifierName":"foo"},
45 "name": "foo"
46 },
47 "computed": false,
48 "value": {
49 "type": "ClassExpression",
50 "start":38,"end":69,"loc":{"start":{"line":3,"column":10,"index":38},"end":{"line":3,"column":41,"index":69}},
51 "id": {
52 "type": "Identifier",
53 "start":44,"end":45,"loc":{"start":{"line":3,"column":16,"index":44},"end":{"line":3,"column":17,"index":45},"identifierName":"B"},
54 "name": "B"
55 },
56 "superClass": null,
57 "body": {
58 "type": "ClassBody",
59 "start":46,"end":69,"loc":{"start":{"line":3,"column":18,"index":46},"end":{"line":3,"column":41,"index":69}},
60 "body": [
61 {
62 "type": "ClassMethod",
63 "start":48,"end":67,"loc":{"start":{"line":3,"column":20,"index":48},"end":{"line":3,"column":39,"index":67}},
64 "static": false,
65 "key": {
66 "type": "Identifier",
67 "start":48,"end":51,"loc":{"start":{"line":3,"column":20,"index":48},"end":{"line":3,"column":23,"index":51},"identifierName":"bar"},
68 "name": "bar"
69 },
70 "computed": false,
71 "kind": "method",
72 "id": null,
73 "generator": false,
74 "async": false,
75 "params": [],
76 "body": {
77 "type": "BlockStatement",
78 "start":54,"end":67,"loc":{"start":{"line":3,"column":26,"index":54},"end":{"line":3,"column":39,"index":67}},
79 "body": [
80 {
81 "type": "ExpressionStatement",
82 "start":56,"end":65,"loc":{"start":{"line":3,"column":28,"index":56},"end":{"line":3,"column":37,"index":65}},
83 "expression": {
84 "type": "Identifier",
85 "start":56,"end":65,"loc":{"start":{"line":3,"column":28,"index":56},"end":{"line":3,"column":37,"index":65},"identifierName":"arguments"},
86 "name": "arguments"
87 }
88 }
89 ],
90 "directives": []
91 }
92 }
93 ]
94 }
95 }
96 }
97 ]
98 }
99 }
100 ],
101 "directives": []
102 }
103 }
104 ],
105 "directives": []
106 }
107 }