Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":56,"index":56}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":56,"index":56}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "SwitchStatement",
12 "start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":56,"index":56}},
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 "type": "SwitchCase",
55 "start":40,"end":54,"loc":{"start":{"line":1,"column":40,"index":40},"end":{"line":1,"column":54,"index":54}},
56 "consequent": [
57 {
58 "type": "BreakStatement",
59 "start":49,"end":54,"loc":{"start":{"line":1,"column":49,"index":49},"end":{"line":1,"column":54,"index":54}},
60 "label": null
61 }
62 ],
63 "test": null
64 }
65 ]
66 }
67 ],
68 "directives": []
69 }
70 }