Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-properties/inline/output.json

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