Debian Codegraph @

packages/babel-parser/test/fixtures/comments/basic/surrounding-debugger-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": "DebuggerStatement",
27 "start":36,"end":45,"loc":{"start":{"line":3,"column":4,"index":36},"end":{"line":3,"column":13,"index":45}},
28 "trailingComments": [
29 {
30 "type": "CommentBlock",
31 "value": " after ",
32 "start":50,"end":61,"loc":{"start":{"line":4,"column":4,"index":50},"end":{"line":4,"column":15,"index":61}}
33 }
34 ],
35 "leadingComments": [
36 {
37 "type": "CommentBlock",
38 "value": " before ",
39 "start":19,"end":31,"loc":{"start":{"line":2,"column":4,"index":19},"end":{"line":2,"column":16,"index":31}}
40 }
41 ]
42 }
43 ],
44 "directives": []
45 }
46 }
47 ],
48 "directives": []
49 },
50 "comments": [
51 {
52 "type": "CommentBlock",
53 "value": " before ",
54 "start":19,"end":31,"loc":{"start":{"line":2,"column":4,"index":19},"end":{"line":2,"column":16,"index":31}}
55 },
56 {
57 "type": "CommentBlock",
58 "value": " after ",
59 "start":50,"end":61,"loc":{"start":{"line":4,"column":4,"index":50},"end":{"line":4,"column":15,"index":61}}
60 }
61 ]
62 }