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