Debian Codegraph @

packages/babel-parser/test/fixtures/placeholders/variable/const-init/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":6,"end":23,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":23,"index":23}},
17 "id": {
18 "type": "Placeholder",
19 "start":6,"end":13,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":13,"index":13}},
20 "name": {
21 "type": "Identifier",
22 "start":8,"end":11,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":11,"index":11},"identifierName":"LHS"},
23 "name": "LHS"
24 },
25 "expectedNode": "Pattern"
26 },
27 "init": {
28 "type": "Placeholder",
29 "start":16,"end":23,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":23,"index":23}},
30 "name": {
31 "type": "Identifier",
32 "start":18,"end":21,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":21,"index":21},"identifierName":"RHS"},
33 "name": "RHS"
34 },
35 "expectedNode": "Expression"
36 }
37 }
38 ],
39 "kind": "const"
40 }
41 ],
42 "directives": []
43 }
44 }