Debian Codegraph @

packages/babel-parser/test/fixtures/flow/call-properties/3/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":54,"index":54}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":54,"index":54}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":54,"index":54}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":4,"end":54,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":54,"index":54}},
17 "id": {
18 "type": "Identifier",
19 "start":4,"end":54,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":54,"index":54},"identifierName":"a"},
20 "name": "a",
21 "typeAnnotation": {
22 "type": "TypeAnnotation",
23 "start":6,"end":54,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":54,"index":54}},
24 "typeAnnotation": {
25 "type": "ObjectTypeAnnotation",
26 "start":8,"end":54,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":54,"index":54}},
27 "callProperties": [
28 {
29 "type": "ObjectTypeCallProperty",
30 "start":10,"end":20,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":20,"index":20}},
31 "static": false,
32 "value": {
33 "type": "FunctionTypeAnnotation",
34 "start":10,"end":20,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":20,"index":20}},
35 "params": [],
36 "rest": null,
37 "typeParameters": null,
38 "this": null,
39 "returnType": {
40 "type": "NumberTypeAnnotation",
41 "start":14,"end":20,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":20,"index":20}}
42 }
43 }
44 },
45 {
46 "type": "ObjectTypeCallProperty",
47 "start":33,"end":52,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":52,"index":52}},
48 "static": false,
49 "value": {
50 "type": "FunctionTypeAnnotation",
51 "start":33,"end":52,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":52,"index":52}},
52 "params": [
53 {
54 "type": "FunctionTypeParam",
55 "start":34,"end":43,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":43,"index":43}},
56 "name": {
57 "type": "Identifier",
58 "start":34,"end":35,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":35,"index":35},"identifierName":"x"},
59 "name": "x"
60 },
61 "optional": false,
62 "typeAnnotation": {
63 "type": "StringTypeAnnotation",
64 "start":37,"end":43,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":43,"index":43}}
65 }
66 }
67 ],
68 "rest": null,
69 "typeParameters": null,
70 "this": null,
71 "returnType": {
72 "type": "StringTypeAnnotation",
73 "start":46,"end":52,"loc":{"start":{"line":1,"column":46,"index":46},"end":{"line":1,"column":52,"index":52}}
74 }
75 }
76 }
77 ],
78 "properties": [
79 {
80 "type": "ObjectTypeProperty",
81 "start":22,"end":31,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":31,"index":31}},
82 "key": {
83 "type": "Identifier",
84 "start":22,"end":23,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":23,"index":23},"identifierName":"y"},
85 "name": "y"
86 },
87 "static": false,
88 "proto": false,
89 "kind": "init",
90 "method": false,
91 "value": {
92 "type": "StringTypeAnnotation",
93 "start":25,"end":31,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":31,"index":31}}
94 },
95 "variance": null,
96 "optional": false
97 }
98 ],
99 "indexers": [],
100 "internalSlots": [],
101 "exact": false,
102 "inexact": false
103 }
104 }
105 },
106 "init": null
107 }
108 ],
109 "kind": "var"
110 }
111 ],
112 "directives": []
113 }
114 }