Debian Codegraph @

packages/babel-parser/test/fixtures/comments/regression/10448/output.json

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