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