Debian Codegraph @

packages/babel-parser/test/fixtures/comments/basic/switch-no-case-comment/output.json

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