Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/rest-parameter/rest-parameter-object/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":21,"index":21}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":21,"index":21}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":21,"index":21}},
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": "RestElement",
23 "start":11,"end":17,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":17,"index":17}},
24 "argument": {
25 "type": "ObjectPattern",
26 "start":14,"end":17,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":17,"index":17}},
27 "properties": [
28 {
29 "type": "ObjectProperty",
30 "start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16}},
31 "key": {
32 "type": "Identifier",
33 "start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16},"identifierName":"a"},
34 "name": "a"
35 },
36 "computed": false,
37 "method": false,
38 "shorthand": true,
39 "value": {
40 "type": "Identifier",
41 "start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16},"identifierName":"a"},
42 "name": "a"
43 },
44 "extra": {
45 "shorthand": true
46 }
47 }
48 ]
49 }
50 }
51 ],
52 "body": {
53 "type": "BlockStatement",
54 "start":19,"end":21,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":21,"index":21}},
55 "body": [],
56 "directives": []
57 }
58 }
59 ],
60 "directives": []
61 }
62 }