Debian Codegraph @

packages/babel-parser/test/fixtures/placeholders/arrow/sync/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
13 "expression": {
14 "type": "ArrowFunctionExpression",
15 "start":0,"end":23,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":23,"index":23}},
16 "id": null,
17 "generator": false,
18 "async": false,
19 "params": [
20 {
21 "type": "Placeholder",
22 "start":1,"end":10,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":10,"index":10}},
23 "name": {
24 "type": "Identifier",
25 "start":3,"end":8,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":8,"index":8},"identifierName":"PARAM"},
26 "name": "PARAM"
27 },
28 "expectedNode": "Pattern"
29 }
30 ],
31 "body": {
32 "type": "Placeholder",
33 "start":15,"end":23,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":23,"index":23}},
34 "name": {
35 "type": "Identifier",
36 "start":17,"end":21,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":21,"index":21},"identifierName":"BODY"},
37 "name": "BODY"
38 },
39 "expectedNode": "Expression"
40 }
41 }
42 }
43 ],
44 "directives": []
45 }
46 }