Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/uncategorised/347/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":29,"index":29}},
4 "errors": [
5 "SyntaxError: A 'set' accessor must have exactly one formal parameter. (1:10)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":29,"index":29}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ClassDeclaration",
15 "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":29,"index":29}},
16 "id": {
17 "type": "Identifier",
18 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"A"},
19 "name": "A"
20 },
21 "superClass": null,
22 "body": {
23 "type": "ClassBody",
24 "start":8,"end":29,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":29,"index":29}},
25 "body": [
26 {
27 "type": "ClassMethod",
28 "start":10,"end":27,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":27,"index":27}},
29 "static": false,
30 "key": {
31 "type": "Identifier",
32 "start":14,"end":18,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":18,"index":18},"identifierName":"prop"},
33 "name": "prop"
34 },
35 "computed": false,
36 "kind": "set",
37 "id": null,
38 "generator": false,
39 "async": false,
40 "params": [
41 {
42 "type": "Identifier",
43 "start":19,"end":20,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":20,"index":20},"identifierName":"x"},
44 "name": "x"
45 },
46 {
47 "type": "Identifier",
48 "start":22,"end":23,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":23,"index":23},"identifierName":"y"},
49 "name": "y"
50 }
51 ],
52 "body": {
53 "type": "BlockStatement",
54 "start":25,"end":27,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":27,"index":27}},
55 "body": [],
56 "directives": []
57 }
58 }
59 ]
60 }
61 }
62 ],
63 "directives": []
64 }
65 }