Debian Codegraph @

packages/babel-parser/test/fixtures/placeholders/function/id-params-body/output.json

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