Debian Codegraph @

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

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