Debian Codegraph @

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

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