Debian Codegraph @

packages/babel-parser/test/fixtures/placeholders/function/param/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": "FunctionDeclaration",
12 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
13 "id": {
14 "type": "Identifier",
15 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"f"},
16 "name": "f"
17 },
18 "generator": false,
19 "async": false,
20 "params": [
21 {
22 "type": "Placeholder",
23 "start":11,"end":20,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":20,"index":20}},
24 "name": {
25 "type": "Identifier",
26 "start":13,"end":18,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":18,"index":18},"identifierName":"PARAM"},
27 "name": "PARAM"
28 },
29 "expectedNode": "Pattern"
30 }
31 ],
32 "body": {
33 "type": "BlockStatement",
34 "start":22,"end":24,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":24,"index":24}},
35 "body": [],
36 "directives": []
37 }
38 }
39 ],
40 "directives": []
41 }
42 }