Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0273/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
4 "errors": [
5 "SyntaxError: Class constructor may not be an accessor. (1:13)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ClassDeclaration",
15 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
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":30,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":30,"index":30}},
25 "body": [
26 {
27 "type": "ClassMethod",
28 "start":9,"end":29,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":29,"index":29}},
29 "static": false,
30 "key": {
31 "type": "Identifier",
32 "start":13,"end":24,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":24,"index":24},"identifierName":"constructor"},
33 "name": "constructor"
34 },
35 "computed": false,
36 "kind": "set",
37 "id": null,
38 "generator": false,
39 "async": false,
40 "params": [
41 {
42 "type": "Identifier",
43 "start":25,"end":26,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":26,"index":26},"identifierName":"m"},
44 "name": "m"
45 }
46 ],
47 "body": {
48 "type": "BlockStatement",
49 "start":27,"end":29,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":29,"index":29}},
50 "body": [],
51 "directives": []
52 }
53 }
54 ]
55 }
56 }
57 ],
58 "directives": []
59 }
60 }