Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":50,"index":50}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":50,"index":50}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "SwitchStatement",
12 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":50,"index":50}},
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":48,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":48,"index":48}},
22 "consequent": [
23 {
24 "type": "ExpressionStatement",
25 "start":41,"end":48,"loc":{"start":{"line":1,"column":41,"index":41},"end":{"line":1,"column":48,"index":48}},
26 "expression": {
27 "type": "CallExpression",
28 "start":41,"end":48,"loc":{"start":{"line":1,"column":41,"index":41},"end":{"line":1,"column":48,"index":48}},
29 "callee": {
30 "type": "Identifier",
31 "start":41,"end":46,"loc":{"start":{"line":1,"column":41,"index":41},"end":{"line":1,"column":46,"index":46},"identifierName":"bingo"},
32 "name": "bingo"
33 },
34 "arguments": []
35 },
36 "leadingComments": [
37 {
38 "type": "CommentBlock",
39 "value": " perfect ",
40 "start":27,"end":40,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":40,"index":40}}
41 }
42 ]
43 }
44 ],
45 "test": {
46 "type": "NumericLiteral",
47 "start":23,"end":25,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":25,"index":25}},
48 "extra": {
49 "rawValue": 42,
50 "raw": "42"
51 },
52 "value": 42
53 }
54 }
55 ]
56 }
57 ],
58 "directives": []
59 },
60 "comments": [
61 {
62 "type": "CommentBlock",
63 "value": " perfect ",
64 "start":27,"end":40,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":40,"index":40}}
65 }
66 ]
67 }