Debian Codegraph @

packages/babel-parser/test/fixtures/core/categorized/label-kind-switch/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":25}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":25}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "BlockStatement",
12 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":25}},
13 "body": [
14 {
15 "type": "LabeledStatement",
16 "start":4,"end":23,"loc":{"start":{"line":2,"column":2,"index":4},"end":{"line":3,"column":3,"index":23}},
17 "body": {
18 "type": "SwitchStatement",
19 "start":7,"end":23,"loc":{"start":{"line":2,"column":5,"index":7},"end":{"line":3,"column":3,"index":23}},
20 "discriminant": {
21 "type": "Identifier",
22 "start":15,"end":16,"loc":{"start":{"line":2,"column":13,"index":15},"end":{"line":2,"column":14,"index":16},"identifierName":"i"},
23 "name": "i"
24 },
25 "cases": []
26 },
27 "label": {
28 "type": "Identifier",
29 "start":4,"end":5,"loc":{"start":{"line":2,"column":2,"index":4},"end":{"line":2,"column":3,"index":5},"identifierName":"a"},
30 "name": "a"
31 }
32 }
33 ],
34 "directives": []
35 }
36 ],
37 "directives": []
38 }
39 }