Debian Codegraph @

packages/babel-parser/test/fixtures/flow/classes/constructor-override-with-class-prop-plugin/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":40}},
4 "errors": [
5 "SyntaxError: Classes may not have a field named 'constructor'. (2:2)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":40}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ClassDeclaration",
15 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":40}},
16 "id": {
17 "type": "Identifier",
18 "start":6,"end":9,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":9,"index":9},"identifierName":"Foo"},
19 "name": "Foo"
20 },
21 "superClass": null,
22 "body": {
23 "type": "ClassBody",
24 "start":10,"end":40,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":3,"column":1,"index":40}},
25 "body": [
26 {
27 "type": "ClassProperty",
28 "start":14,"end":38,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":26,"index":38}},
29 "static": false,
30 "variance": null,
31 "key": {
32 "type": "Identifier",
33 "start":14,"end":25,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":13,"index":25},"identifierName":"constructor"},
34 "name": "constructor"
35 },
36 "computed": false,
37 "typeAnnotation": {
38 "type": "TypeAnnotation",
39 "start":25,"end":37,"loc":{"start":{"line":2,"column":13,"index":25},"end":{"line":2,"column":25,"index":37}},
40 "typeAnnotation": {
41 "type": "FunctionTypeAnnotation",
42 "start":27,"end":37,"loc":{"start":{"line":2,"column":15,"index":27},"end":{"line":2,"column":25,"index":37}},
43 "params": [],
44 "rest": null,
45 "this": null,
46 "returnType": {
47 "type": "ThisTypeAnnotation",
48 "start":33,"end":37,"loc":{"start":{"line":2,"column":21,"index":33},"end":{"line":2,"column":25,"index":37}}
49 },
50 "typeParameters": null
51 }
52 },
53 "value": null
54 }
55 ]
56 }
57 }
58 ],
59 "directives": []
60 }
61 }