Debian Codegraph @

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

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