Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/destructuring-private/valid-nested-bindings/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":87,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":87}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":87,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":87}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":87,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":87}},
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":"C"},
16 "name": "C"
17 },
18 "superClass": null,
19 "body": {
20 "type": "ClassBody",
21 "start":8,"end":87,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":6,"column":1,"index":87}},
22 "body": [
23 {
24 "type": "ClassPrivateProperty",
25 "start":12,"end":19,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":9,"index":19}},
26 "static": false,
27 "key": {
28 "type": "PrivateName",
29 "start":12,"end":14,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":4,"index":14}},
30 "id": {
31 "type": "Identifier",
32 "start":13,"end":14,"loc":{"start":{"line":2,"column":3,"index":13},"end":{"line":2,"column":4,"index":14},"identifierName":"x"},
33 "name": "x"
34 }
35 },
36 "value": {
37 "type": "NumericLiteral",
38 "start":17,"end":18,"loc":{"start":{"line":2,"column":7,"index":17},"end":{"line":2,"column":8,"index":18}},
39 "extra": {
40 "rawValue": 1,
41 "raw": "1"
42 },
43 "value": 1
44 }
45 },
46 {
47 "type": "ClassMethod",
48 "start":22,"end":85,"loc":{"start":{"line":3,"column":2,"index":22},"end":{"line":5,"column":3,"index":85}},
49 "static": false,
50 "key": {
51 "type": "Identifier",
52 "start":22,"end":23,"loc":{"start":{"line":3,"column":2,"index":22},"end":{"line":3,"column":3,"index":23},"identifierName":"m"},
53 "name": "m"
54 },
55 "computed": false,
56 "kind": "method",
57 "id": null,
58 "generator": false,
59 "async": false,
60 "params": [],
61 "body": {
62 "type": "BlockStatement",
63 "start":26,"end":85,"loc":{"start":{"line":3,"column":6,"index":26},"end":{"line":5,"column":3,"index":85}},
64 "body": [
65 {
66 "type": "VariableDeclaration",
67 "start":32,"end":81,"loc":{"start":{"line":4,"column":4,"index":32},"end":{"line":4,"column":53,"index":81}},
68 "declarations": [
69 {
70 "type": "VariableDeclarator",
71 "start":38,"end":80,"loc":{"start":{"line":4,"column":10,"index":38},"end":{"line":4,"column":52,"index":80}},
72 "id": {
73 "type": "ObjectPattern",
74 "start":38,"end":73,"loc":{"start":{"line":4,"column":10,"index":38},"end":{"line":4,"column":45,"index":73}},
75 "properties": [
76 {
77 "type": "ObjectProperty",
78 "start":39,"end":53,"loc":{"start":{"line":4,"column":11,"index":39},"end":{"line":4,"column":25,"index":53}},
79 "key": {
80 "type": "Identifier",
81 "start":39,"end":40,"loc":{"start":{"line":4,"column":11,"index":39},"end":{"line":4,"column":12,"index":40},"identifierName":"x"},
82 "name": "x"
83 },
84 "computed": false,
85 "method": false,
86 "shorthand": false,
87 "value": {
88 "type": "ObjectPattern",
89 "start":42,"end":53,"loc":{"start":{"line":4,"column":14,"index":42},"end":{"line":4,"column":25,"index":53}},
90 "properties": [
91 {
92 "type": "ObjectProperty",
93 "start":44,"end":51,"loc":{"start":{"line":4,"column":16,"index":44},"end":{"line":4,"column":23,"index":51}},
94 "key": {
95 "type": "PrivateName",
96 "start":44,"end":46,"loc":{"start":{"line":4,"column":16,"index":44},"end":{"line":4,"column":18,"index":46}},
97 "id": {
98 "type": "Identifier",
99 "start":45,"end":46,"loc":{"start":{"line":4,"column":17,"index":45},"end":{"line":4,"column":18,"index":46},"identifierName":"x"},
100 "name": "x"
101 }
102 },
103 "method": false,
104 "shorthand": false,
105 "value": {
106 "type": "ArrayPattern",
107 "start":48,"end":51,"loc":{"start":{"line":4,"column":20,"index":48},"end":{"line":4,"column":23,"index":51}},
108 "elements": [
109 {
110 "type": "Identifier",
111 "start":49,"end":50,"loc":{"start":{"line":4,"column":21,"index":49},"end":{"line":4,"column":22,"index":50},"identifierName":"x"},
112 "name": "x"
113 }
114 ]
115 }
116 }
117 ]
118 }
119 },
120 {
121 "type": "ObjectProperty",
122 "start":55,"end":72,"loc":{"start":{"line":4,"column":27,"index":55},"end":{"line":4,"column":44,"index":72}},
123 "key": {
124 "type": "Identifier",
125 "start":55,"end":56,"loc":{"start":{"line":4,"column":27,"index":55},"end":{"line":4,"column":28,"index":56},"identifierName":"y"},
126 "name": "y"
127 },
128 "computed": false,
129 "method": false,
130 "shorthand": false,
131 "value": {
132 "type": "ArrayPattern",
133 "start":58,"end":72,"loc":{"start":{"line":4,"column":30,"index":58},"end":{"line":4,"column":44,"index":72}},
134 "elements": [
135 {
136 "type": "RestElement",
137 "start":59,"end":71,"loc":{"start":{"line":4,"column":31,"index":59},"end":{"line":4,"column":43,"index":71}},
138 "argument": {
139 "type": "ObjectPattern",
140 "start":62,"end":71,"loc":{"start":{"line":4,"column":34,"index":62},"end":{"line":4,"column":43,"index":71}},
141 "properties": [
142 {
143 "type": "ObjectProperty",
144 "start":64,"end":69,"loc":{"start":{"line":4,"column":36,"index":64},"end":{"line":4,"column":41,"index":69}},
145 "key": {
146 "type": "PrivateName",
147 "start":64,"end":66,"loc":{"start":{"line":4,"column":36,"index":64},"end":{"line":4,"column":38,"index":66}},
148 "id": {
149 "type": "Identifier",
150 "start":65,"end":66,"loc":{"start":{"line":4,"column":37,"index":65},"end":{"line":4,"column":38,"index":66},"identifierName":"x"},
151 "name": "x"
152 }
153 },
154 "method": false,
155 "shorthand": false,
156 "value": {
157 "type": "Identifier",
158 "start":68,"end":69,"loc":{"start":{"line":4,"column":40,"index":68},"end":{"line":4,"column":41,"index":69},"identifierName":"y"},
159 "name": "y"
160 }
161 }
162 ]
163 }
164 }
165 ]
166 }
167 }
168 ]
169 },
170 "init": {
171 "type": "ThisExpression",
172 "start":76,"end":80,"loc":{"start":{"line":4,"column":48,"index":76},"end":{"line":4,"column":52,"index":80}}
173 }
174 }
175 ],
176 "kind": "const"
177 }
178 ],
179 "directives": []
180 }
181 }
182 ]
183 }
184 }
185 ],
186 "directives": []
187 }
188 }