Debian Codegraph @

packages/babel-parser/test/fixtures/comments/basic/surrounding-throw-comments/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":63,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":63}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":63,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":63}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":63,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":63}},
13 "id": {
14 "type": "Identifier",
15 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"a"},
16 "name": "a"
17 },
18 "generator": false,
19 "async": false,
20 "params": [],
21 "body": {
22 "type": "BlockStatement",
23 "start":13,"end":63,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":5,"column":1,"index":63}},
24 "body": [
25 {
26 "type": "ThrowStatement",
27 "start":36,"end":45,"loc":{"start":{"line":3,"column":4,"index":36},"end":{"line":3,"column":13,"index":45}},
28 "argument": {
29 "type": "NumericLiteral",
30 "start":42,"end":44,"loc":{"start":{"line":3,"column":10,"index":42},"end":{"line":3,"column":12,"index":44}},
31 "extra": {
32 "rawValue": 55,
33 "raw": "55"
34 },
35 "value": 55
36 },
37 "trailingComments": [
38 {
39 "type": "CommentBlock",
40 "value": " after ",
41 "start":50,"end":61,"loc":{"start":{"line":4,"column":4,"index":50},"end":{"line":4,"column":15,"index":61}}
42 }
43 ],
44 "leadingComments": [
45 {
46 "type": "CommentBlock",
47 "value": " before ",
48 "start":19,"end":31,"loc":{"start":{"line":2,"column":4,"index":19},"end":{"line":2,"column":16,"index":31}}
49 }
50 ]
51 }
52 ],
53 "directives": []
54 }
55 }
56 ],
57 "directives": []
58 },
59 "comments": [
60 {
61 "type": "CommentBlock",
62 "value": " before ",
63 "start":19,"end":31,"loc":{"start":{"line":2,"column":4,"index":19},"end":{"line":2,"column":16,"index":31}}
64 },
65 {
66 "type": "CommentBlock",
67 "value": " after ",
68 "start":50,"end":61,"loc":{"start":{"line":4,"column":4,"index":50},"end":{"line":4,"column":15,"index":61}}
69 }
70 ]
71 }