Debian Codegraph @

packages/babel-parser/test/fixtures/core/uncategorised/269/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "SwitchStatement",
12 "start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}},
13 "discriminant": {
14 "type": "Identifier",
15 "start":8,"end":14,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":14,"index":14},"identifierName":"answer"},
16 "name": "answer"
17 },
18 "cases": [
19 {
20 "type": "SwitchCase",
21 "start":18,"end":39,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":39,"index":39}},
22 "consequent": [
23 {
24 "type": "ExpressionStatement",
25 "start":27,"end":32,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":32,"index":32}},
26 "expression": {
27 "type": "CallExpression",
28 "start":27,"end":31,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":31,"index":31}},
29 "callee": {
30 "type": "Identifier",
31 "start":27,"end":29,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":29,"index":29},"identifierName":"hi"},
32 "name": "hi"
33 },
34 "arguments": []
35 }
36 },
37 {
38 "type": "BreakStatement",
39 "start":33,"end":39,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":39,"index":39}},
40 "label": null
41 }
42 ],
43 "test": {
44 "type": "NumericLiteral",
45 "start":23,"end":25,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":25,"index":25}},
46 "extra": {
47 "rawValue": 42,
48 "raw": "42"
49 },
50 "value": 42
51 }
52 }
53 ]
54 }
55 ],
56 "directives": []
57 }
58 }