Debian Codegraph @

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

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