Debian Codegraph @

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

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
4 "errors": [
5 "SyntaxError: A 'set' accessor function argument must not be a rest parameter. (1:6)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
16 "expression": {
17 "type": "AssignmentExpression",
18 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
19 "operator": "=",
20 "left": {
21 "type": "Identifier",
22 "start":0,"end":1,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":1,"index":1},"identifierName":"x"},
23 "name": "x"
24 },
25 "right": {
26 "type": "ObjectExpression",
27 "start":4,"end":22,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":22,"index":22}},
28 "properties": [
29 {
30 "type": "ObjectMethod",
31 "start":6,"end":20,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":20,"index":20}},
32 "method": false,
33 "key": {
34 "type": "Identifier",
35 "start":10,"end":11,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":11,"index":11},"identifierName":"f"},
36 "name": "f"
37 },
38 "computed": false,
39 "kind": "set",
40 "id": null,
41 "generator": false,
42 "async": false,
43 "params": [
44 {
45 "type": "RestElement",
46 "start":12,"end":16,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":16,"index":16}},
47 "argument": {
48 "type": "Identifier",
49 "start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16},"identifierName":"y"},
50 "name": "y"
51 }
52 }
53 ],
54 "body": {
55 "type": "BlockStatement",
56 "start":18,"end":20,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":20,"index":20}},
57 "body": [],
58 "directives": []
59 }
60 }
61 ]
62 }
63 }
64 }
65 ],
66 "directives": []
67 }
68 }