Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":15,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":15,"index":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,"index":0},"end":{"line":1,"column":15,"index":15}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":15,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":15,"index":15}},
16 "expression": {
17 "type": "ObjectExpression",
18 "start":1,"end":14,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":14,"index":14}},
19 "properties": [
20 {
21 "type": "ObjectMethod",
22 "start":3,"end":12,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":12,"index":12}},
23 "method": false,
24 "key": {
25 "type": "Identifier",
26 "start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8},"identifierName":"x"},
27 "name": "x"
28 },
29 "computed": false,
30 "kind": "set",
31 "id": null,
32 "generator": false,
33 "async": false,
34 "params": [],
35 "body": {
36 "type": "BlockStatement",
37 "start":10,"end":12,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":12,"index":12}},
38 "body": [],
39 "directives": []
40 }
41 }
42 ],
43 "extra": {
44 "parenthesized": true,
45 "parenStart": 0
46 }
47 }
48 }
49 ],
50 "directives": []
51 }
52 }