Debian Codegraph @

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

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