Debian Codegraph @

packages/babel-parser/test/fixtures/core/scope/for-let/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":32}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":32}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ForStatement",
12 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":32}},
13 "init": {
14 "type": "VariableDeclaration",
15 "start":5,"end":14,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":14,"index":14}},
16 "declarations": [
17 {
18 "type": "VariableDeclarator",
19 "start":9,"end":14,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":14,"index":14}},
20 "id": {
21 "type": "Identifier",
22 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"i"},
23 "name": "i"
24 },
25 "init": {
26 "type": "NumericLiteral",
27 "start":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14}},
28 "extra": {
29 "rawValue": 0,
30 "raw": "0"
31 },
32 "value": 0
33 }
34 }
35 ],
36 "kind": "let"
37 },
38 "test": null,
39 "update": null,
40 "body": {
41 "type": "BlockStatement",
42 "start":18,"end":32,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":3,"column":1,"index":32}},
43 "body": [
44 {
45 "type": "VariableDeclaration",
46 "start":24,"end":30,"loc":{"start":{"line":2,"column":4,"index":24},"end":{"line":2,"column":10,"index":30}},
47 "declarations": [
48 {
49 "type": "VariableDeclarator",
50 "start":28,"end":29,"loc":{"start":{"line":2,"column":8,"index":28},"end":{"line":2,"column":9,"index":29}},
51 "id": {
52 "type": "Identifier",
53 "start":28,"end":29,"loc":{"start":{"line":2,"column":8,"index":28},"end":{"line":2,"column":9,"index":29},"identifierName":"i"},
54 "name": "i"
55 },
56 "init": null
57 }
58 ],
59 "kind": "let"
60 }
61 ],
62 "directives": []
63 }
64 }
65 ],
66 "directives": []
67 }
68 }