Debian Codegraph @

packages/babel-parser/test/fixtures/estree/object-method/invalid-setter/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}},
4 "errors": [
5 "SyntaxError: A 'set' accessor must have exactly one formal parameter. (1:3)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}},
16 "expression": {
17 "type": "ObjectExpression",
18 "start":1,"end":14,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":14}},
19 "properties": [
20 {
21 "type": "Property",
22 "start":3,"end":12,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":12}},
23 "method": false,
24 "key": {
25 "type": "Identifier",
26 "start":7,"end":8,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":8},"identifierName":"x"},
27 "name": "x"
28 },
29 "computed": false,
30 "kind": "set",
31 "value": {
32 "type": "FunctionExpression",
33 "start":8,"end":12,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":12}},
34 "id": null,
35 "generator": false,
36 "async": false,
37 "expression": false,
38 "params": [],
39 "body": {
40 "type": "BlockStatement",
41 "start":10,"end":12,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":12}},
42 "body": []
43 }
44 },
45 "shorthand": false
46 }
47 ],
48 "extra": {
49 "parenthesized": true,
50 "parenStart": 0
51 }
52 }
53 }
54 ]
55 }
56 }