Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":56}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":56}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":56}},
13 "id": {
14 "type": "Identifier",
15 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"A"},
16 "name": "A"
17 },
18 "superClass": null,
19 "body": {
20 "type": "ClassBody",
21 "start":8,"end":56,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":5,"column":1,"index":56}},
22 "body": [
23 {
24 "type": "ClassMethod",
25 "start":12,"end":54,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":4,"column":3,"index":54}},
26 "static": false,
27 "key": {
28 "type": "Identifier",
29 "start":12,"end":23,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":13,"index":23},"identifierName":"constructor"},
30 "name": "constructor"
31 },
32 "computed": false,
33 "kind": "constructor",
34 "id": null,
35 "generator": false,
36 "async": false,
37 "params": [],
38 "predicate": null,
39 "returnType": {
40 "type": "TypeAnnotation",
41 "start":25,"end":33,"loc":{"start":{"line":2,"column":15,"index":25},"end":{"line":2,"column":23,"index":33}},
42 "typeAnnotation": {
43 "type": "GenericTypeAnnotation",
44 "start":27,"end":33,"loc":{"start":{"line":2,"column":17,"index":27},"end":{"line":2,"column":23,"index":33}},
45 "typeParameters": null,
46 "id": {
47 "type": "Identifier",
48 "start":27,"end":33,"loc":{"start":{"line":2,"column":17,"index":27},"end":{"line":2,"column":23,"index":33},"identifierName":"Object"},
49 "name": "Object"
50 }
51 }
52 },
53 "body": {
54 "type": "BlockStatement",
55 "start":34,"end":54,"loc":{"start":{"line":2,"column":24,"index":34},"end":{"line":4,"column":3,"index":54}},
56 "body": [
57 {
58 "type": "ReturnStatement",
59 "start":40,"end":50,"loc":{"start":{"line":3,"column":4,"index":40},"end":{"line":3,"column":14,"index":50}},
60 "argument": {
61 "type": "ObjectExpression",
62 "start":47,"end":49,"loc":{"start":{"line":3,"column":11,"index":47},"end":{"line":3,"column":13,"index":49}},
63 "properties": []
64 }
65 }
66 ],
67 "directives": []
68 }
69 }
70 ]
71 }
72 }
73 ],
74 "directives": []
75 }
76 }