Debian Codegraph @

packages/babel-parser/test/fixtures/comments/basic/block-trailing-comment/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":26}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":26}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "BlockStatement",
12 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":26}},
13 "body": [
14 {
15 "type": "ExpressionStatement",
16 "start":6,"end":10,"loc":{"start":{"line":2,"column":4,"index":6},"end":{"line":2,"column":8,"index":10}},
17 "expression": {
18 "type": "CallExpression",
19 "start":6,"end":9,"loc":{"start":{"line":2,"column":4,"index":6},"end":{"line":2,"column":7,"index":9}},
20 "callee": {
21 "type": "Identifier",
22 "start":6,"end":7,"loc":{"start":{"line":2,"column":4,"index":6},"end":{"line":2,"column":5,"index":7},"identifierName":"a"},
23 "name": "a"
24 },
25 "arguments": []
26 },
27 "trailingComments": [
28 {
29 "type": "CommentLine",
30 "value": "comment",
31 "start":15,"end":24,"loc":{"start":{"line":3,"column":4,"index":15},"end":{"line":3,"column":13,"index":24}}
32 }
33 ]
34 }
35 ],
36 "directives": []
37 }
38 ],
39 "directives": []
40 },
41 "comments": [
42 {
43 "type": "CommentLine",
44 "value": "comment",
45 "start":15,"end":24,"loc":{"start":{"line":3,"column":4,"index":15},"end":{"line":3,"column":13,"index":24}}
46 }
47 ]
48 }