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