| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":168,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":168}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":168,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":168}}, |
| 7 |
"sourceType": "module", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "DeclareClass", |
| 12 |
"start":0,"end":168,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":168}}, |
| 13 |
"id": { |
| 14 |
"type": "Identifier", |
| 15 |
"start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15},"identifierName":"A"}, |
| 16 |
"name": "A" |
| 17 |
}, |
| 18 |
"typeParameters": null, |
| 19 |
"extends": [], |
| 20 |
"implements": [], |
| 21 |
"mixins": [], |
| 22 |
"body": { |
| 23 |
"type": "ObjectTypeAnnotation", |
| 24 |
"start":16,"end":168,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":6,"column":1,"index":168}}, |
| 25 |
"callProperties": [], |
| 26 |
"properties": [ |
| 27 |
{ |
| 28 |
"type": "ObjectTypeProperty", |
| 29 |
"start":22,"end":69,"loc":{"start":{"line":2,"column":4,"index":22},"end":{"line":2,"column":51,"index":69}}, |
| 30 |
"key": { |
| 31 |
"type": "Identifier", |
| 32 |
"start":22,"end":23,"loc":{"start":{"line":2,"column":4,"index":22},"end":{"line":2,"column":5,"index":23},"identifierName":"m"}, |
| 33 |
"name": "m" |
| 34 |
}, |
| 35 |
"static": false, |
| 36 |
"proto": false, |
| 37 |
"kind": "init", |
| 38 |
"method": true, |
| 39 |
"value": { |
| 40 |
"type": "FunctionTypeAnnotation", |
| 41 |
"start":22,"end":69,"loc":{"start":{"line":2,"column":4,"index":22},"end":{"line":2,"column":51,"index":69}}, |
| 42 |
"params": [ |
| 43 |
{ |
| 44 |
"type": "FunctionTypeParam", |
| 45 |
"start":39,"end":49,"loc":{"start":{"line":2,"column":21,"index":39},"end":{"line":2,"column":31,"index":49}}, |
| 46 |
"name": { |
| 47 |
"type": "Identifier", |
| 48 |
"start":39,"end":40,"loc":{"start":{"line":2,"column":21,"index":39},"end":{"line":2,"column":22,"index":40},"identifierName":"a"}, |
| 49 |
"name": "a" |
| 50 |
}, |
| 51 |
"optional": false, |
| 52 |
"typeAnnotation": { |
| 53 |
"type": "NumberTypeAnnotation", |
| 54 |
"start":43,"end":49,"loc":{"start":{"line":2,"column":25,"index":43},"end":{"line":2,"column":31,"index":49}} |
| 55 |
} |
| 56 |
}, |
| 57 |
{ |
| 58 |
"type": "FunctionTypeParam", |
| 59 |
"start":51,"end":61,"loc":{"start":{"line":2,"column":33,"index":51},"end":{"line":2,"column":43,"index":61}}, |
| 60 |
"name": { |
| 61 |
"type": "Identifier", |
| 62 |
"start":51,"end":52,"loc":{"start":{"line":2,"column":33,"index":51},"end":{"line":2,"column":34,"index":52},"identifierName":"b"}, |
| 63 |
"name": "b" |
| 64 |
}, |
| 65 |
"optional": false, |
| 66 |
"typeAnnotation": { |
| 67 |
"type": "StringTypeAnnotation", |
| 68 |
"start":55,"end":61,"loc":{"start":{"line":2,"column":37,"index":55},"end":{"line":2,"column":43,"index":61}} |
| 69 |
} |
| 70 |
} |
| 71 |
], |
| 72 |
"rest": null, |
| 73 |
"typeParameters": null, |
| 74 |
"this": { |
| 75 |
"type": "FunctionTypeParam", |
| 76 |
"start":24,"end":37,"loc":{"start":{"line":2,"column":6,"index":24},"end":{"line":2,"column":19,"index":37}}, |
| 77 |
"name": null, |
| 78 |
"optional": false, |
| 79 |
"typeAnnotation": { |
| 80 |
"type": "NumberTypeAnnotation", |
| 81 |
"start":31,"end":37,"loc":{"start":{"line":2,"column":13,"index":31},"end":{"line":2,"column":19,"index":37}} |
| 82 |
} |
| 83 |
}, |
| 84 |
"returnType": { |
| 85 |
"type": "VoidTypeAnnotation", |
| 86 |
"start":65,"end":69,"loc":{"start":{"line":2,"column":47,"index":65},"end":{"line":2,"column":51,"index":69}} |
| 87 |
} |
| 88 |
}, |
| 89 |
"optional": false |
| 90 |
}, |
| 91 |
{ |
| 92 |
"type": "ObjectTypeProperty", |
| 93 |
"start":75,"end":110,"loc":{"start":{"line":3,"column":4,"index":75},"end":{"line":3,"column":39,"index":110}}, |
| 94 |
"key": { |
| 95 |
"type": "Identifier", |
| 96 |
"start":75,"end":76,"loc":{"start":{"line":3,"column":4,"index":75},"end":{"line":3,"column":5,"index":76},"identifierName":"n"}, |
| 97 |
"name": "n" |
| 98 |
}, |
| 99 |
"static": false, |
| 100 |
"proto": false, |
| 101 |
"kind": "init", |
| 102 |
"method": true, |
| 103 |
"value": { |
| 104 |
"type": "FunctionTypeAnnotation", |
| 105 |
"start":75,"end":110,"loc":{"start":{"line":3,"column":4,"index":75},"end":{"line":3,"column":39,"index":110}}, |
| 106 |
"params": [], |
| 107 |
"rest": { |
| 108 |
"type": "FunctionTypeParam", |
| 109 |
"start":95,"end":102,"loc":{"start":{"line":3,"column":24,"index":95},"end":{"line":3,"column":31,"index":102}}, |
| 110 |
"name": { |
| 111 |
"type": "Identifier", |
| 112 |
"start":95,"end":96,"loc":{"start":{"line":3,"column":24,"index":95},"end":{"line":3,"column":25,"index":96},"identifierName":"c"}, |
| 113 |
"name": "c" |
| 114 |
}, |
| 115 |
"optional": false, |
| 116 |
"typeAnnotation": { |
| 117 |
"type": "AnyTypeAnnotation", |
| 118 |
"start":99,"end":102,"loc":{"start":{"line":3,"column":28,"index":99},"end":{"line":3,"column":31,"index":102}} |
| 119 |
} |
| 120 |
}, |
| 121 |
"typeParameters": null, |
| 122 |
"this": { |
| 123 |
"type": "FunctionTypeParam", |
| 124 |
"start":77,"end":90,"loc":{"start":{"line":3,"column":6,"index":77},"end":{"line":3,"column":19,"index":90}}, |
| 125 |
"name": null, |
| 126 |
"optional": false, |
| 127 |
"typeAnnotation": { |
| 128 |
"type": "NumberTypeAnnotation", |
| 129 |
"start":84,"end":90,"loc":{"start":{"line":3,"column":13,"index":84},"end":{"line":3,"column":19,"index":90}} |
| 130 |
} |
| 131 |
}, |
| 132 |
"returnType": { |
| 133 |
"type": "VoidTypeAnnotation", |
| 134 |
"start":106,"end":110,"loc":{"start":{"line":3,"column":35,"index":106},"end":{"line":3,"column":39,"index":110}} |
| 135 |
} |
| 136 |
}, |
| 137 |
"optional": false |
| 138 |
}, |
| 139 |
{ |
| 140 |
"type": "ObjectTypeProperty", |
| 141 |
"start":116,"end":139,"loc":{"start":{"line":4,"column":4,"index":116},"end":{"line":4,"column":27,"index":139}}, |
| 142 |
"key": { |
| 143 |
"type": "Identifier", |
| 144 |
"start":116,"end":117,"loc":{"start":{"line":4,"column":4,"index":116},"end":{"line":4,"column":5,"index":117},"identifierName":"o"}, |
| 145 |
"name": "o" |
| 146 |
}, |
| 147 |
"static": false, |
| 148 |
"proto": false, |
| 149 |
"kind": "init", |
| 150 |
"method": true, |
| 151 |
"value": { |
| 152 |
"type": "FunctionTypeAnnotation", |
| 153 |
"start":116,"end":139,"loc":{"start":{"line":4,"column":4,"index":116},"end":{"line":4,"column":27,"index":139}}, |
| 154 |
"params": [], |
| 155 |
"rest": null, |
| 156 |
"typeParameters": null, |
| 157 |
"this": { |
| 158 |
"type": "FunctionTypeParam", |
| 159 |
"start":118,"end":131,"loc":{"start":{"line":4,"column":6,"index":118},"end":{"line":4,"column":19,"index":131}}, |
| 160 |
"name": null, |
| 161 |
"optional": false, |
| 162 |
"typeAnnotation": { |
| 163 |
"type": "NumberTypeAnnotation", |
| 164 |
"start":125,"end":131,"loc":{"start":{"line":4,"column":13,"index":125},"end":{"line":4,"column":19,"index":131}} |
| 165 |
} |
| 166 |
}, |
| 167 |
"returnType": { |
| 168 |
"type": "VoidTypeAnnotation", |
| 169 |
"start":135,"end":139,"loc":{"start":{"line":4,"column":23,"index":135},"end":{"line":4,"column":27,"index":139}} |
| 170 |
} |
| 171 |
}, |
| 172 |
"optional": false |
| 173 |
}, |
| 174 |
{ |
| 175 |
"type": "ObjectTypeProperty", |
| 176 |
"start":145,"end":166,"loc":{"start":{"line":5,"column":4,"index":145},"end":{"line":5,"column":25,"index":166}}, |
| 177 |
"key": { |
| 178 |
"type": "Identifier", |
| 179 |
"start":145,"end":146,"loc":{"start":{"line":5,"column":4,"index":145},"end":{"line":5,"column":5,"index":146},"identifierName":"p"}, |
| 180 |
"name": "p" |
| 181 |
}, |
| 182 |
"static": false, |
| 183 |
"proto": false, |
| 184 |
"kind": "init", |
| 185 |
"method": true, |
| 186 |
"value": { |
| 187 |
"type": "FunctionTypeAnnotation", |
| 188 |
"start":145,"end":166,"loc":{"start":{"line":5,"column":4,"index":145},"end":{"line":5,"column":25,"index":166}}, |
| 189 |
"params": [], |
| 190 |
"rest": null, |
| 191 |
"typeParameters": { |
| 192 |
"type": "TypeParameterDeclaration", |
| 193 |
"start":146,"end":149,"loc":{"start":{"line":5,"column":5,"index":146},"end":{"line":5,"column":8,"index":149}}, |
| 194 |
"params": [ |
| 195 |
{ |
| 196 |
"type": "TypeParameter", |
| 197 |
"start":147,"end":148,"loc":{"start":{"line":5,"column":6,"index":147},"end":{"line":5,"column":7,"index":148}}, |
| 198 |
"name": "T", |
| 199 |
"variance": null |
| 200 |
} |
| 201 |
] |
| 202 |
}, |
| 203 |
"this": { |
| 204 |
"type": "FunctionTypeParam", |
| 205 |
"start":150,"end":158,"loc":{"start":{"line":5,"column":9,"index":150},"end":{"line":5,"column":17,"index":158}}, |
| 206 |
"name": null, |
| 207 |
"optional": false, |
| 208 |
"typeAnnotation": { |
| 209 |
"type": "GenericTypeAnnotation", |
| 210 |
"start":157,"end":158,"loc":{"start":{"line":5,"column":16,"index":157},"end":{"line":5,"column":17,"index":158}}, |
| 211 |
"typeParameters": null, |
| 212 |
"id": { |
| 213 |
"type": "Identifier", |
| 214 |
"start":157,"end":158,"loc":{"start":{"line":5,"column":16,"index":157},"end":{"line":5,"column":17,"index":158},"identifierName":"T"}, |
| 215 |
"name": "T" |
| 216 |
} |
| 217 |
} |
| 218 |
}, |
| 219 |
"returnType": { |
| 220 |
"type": "VoidTypeAnnotation", |
| 221 |
"start":162,"end":166,"loc":{"start":{"line":5,"column":21,"index":162},"end":{"line":5,"column":25,"index":166}} |
| 222 |
} |
| 223 |
}, |
| 224 |
"optional": false |
| 225 |
} |
| 226 |
], |
| 227 |
"indexers": [], |
| 228 |
"internalSlots": [], |
| 229 |
"exact": false |
| 230 |
} |
| 231 |
} |
| 232 |
], |
| 233 |
"directives": [] |
| 234 |
} |
| 235 |
} |