Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-functions/no-constructor/output.json

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