Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/modules/xml-comment-in-script/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":11,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":11,"index":11}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":11,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":11,"index":11}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":3,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":3,"index":3}},
13 "expression": {
14 "type": "Identifier",
15 "start":0,"end":3,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":3,"index":3},"identifierName":"foo"},
16 "name": "foo"
17 },
18 "trailingComments": [
19 {
20 "type": "CommentLine",
21 "value": "bar",
22 "start":4,"end":11,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":11,"index":11}}
23 }
24 ]
25 }
26 ],
27 "directives": []
28 },
29 "comments": [
30 {
31 "type": "CommentLine",
32 "value": "bar",
33 "start":4,"end":11,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":11,"index":11}}
34 }
35 ]
36 }