Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/declaration-const/migrated_0002/output.json

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