Debian Codegraph @

packages/babel-parser/test/fixtures/comments/basic/call-expression-trailing-comma/output.json

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