| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":496,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":11,"column":75,"index":496}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":496,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":11,"column":75,"index":496}}, |
| 7 |
"sourceType": "module", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "ExpressionStatement", |
| 12 |
"start":0,"end":23,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":23,"index":23}}, |
| 13 |
"expression": { |
| 14 |
"type": "ConditionalExpression", |
| 15 |
"start":1,"end":21,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":21,"index":21}}, |
| 16 |
"test": { |
| 17 |
"type": "Identifier", |
| 18 |
"start":1,"end":2,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":2,"index":2},"identifierName":"a"}, |
| 19 |
"name": "a" |
| 20 |
}, |
| 21 |
"consequent": { |
| 22 |
"type": "AssignmentExpression", |
| 23 |
"start":6,"end":11,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":11,"index":11}}, |
| 24 |
"operator": "=", |
| 25 |
"left": { |
| 26 |
"type": "Identifier", |
| 27 |
"start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"b"}, |
| 28 |
"name": "b" |
| 29 |
}, |
| 30 |
"right": { |
| 31 |
"type": "Identifier", |
| 32 |
"start":10,"end":11,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":11,"index":11},"identifierName":"c"}, |
| 33 |
"name": "c" |
| 34 |
}, |
| 35 |
"extra": { |
| 36 |
"parenthesized": true, |
| 37 |
"parenStart": 5 |
| 38 |
} |
| 39 |
}, |
| 40 |
"alternate": { |
| 41 |
"type": "ArrowFunctionExpression", |
| 42 |
"start":15,"end":21,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":21,"index":21}}, |
| 43 |
"id": null, |
| 44 |
"generator": false, |
| 45 |
"async": false, |
| 46 |
"params": [ |
| 47 |
{ |
| 48 |
"type": "Identifier", |
| 49 |
"start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16},"identifierName":"d"}, |
| 50 |
"name": "d" |
| 51 |
} |
| 52 |
], |
| 53 |
"body": { |
| 54 |
"type": "Identifier", |
| 55 |
"start":20,"end":21,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":21,"index":21},"identifierName":"e"}, |
| 56 |
"name": "e" |
| 57 |
} |
| 58 |
}, |
| 59 |
"extra": { |
| 60 |
"parenthesized": true, |
| 61 |
"parenStart": 0 |
| 62 |
} |
| 63 |
}, |
| 64 |
"trailingComments": [ |
| 65 |
{ |
| 66 |
"type": "CommentLine", |
| 67 |
"value": " a ? (b = c) : (d => e)", |
| 68 |
"start":24,"end":49,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":49,"index":49}} |
| 69 |
} |
| 70 |
] |
| 71 |
}, |
| 72 |
{ |
| 73 |
"type": "ExpressionStatement", |
| 74 |
"start":50,"end":74,"loc":{"start":{"line":2,"column":0,"index":50},"end":{"line":2,"column":24,"index":74}}, |
| 75 |
"expression": { |
| 76 |
"type": "ConditionalExpression", |
| 77 |
"start":51,"end":72,"loc":{"start":{"line":2,"column":1,"index":51},"end":{"line":2,"column":22,"index":72}}, |
| 78 |
"test": { |
| 79 |
"type": "Identifier", |
| 80 |
"start":51,"end":52,"loc":{"start":{"line":2,"column":1,"index":51},"end":{"line":2,"column":2,"index":52},"identifierName":"a"}, |
| 81 |
"name": "a" |
| 82 |
}, |
| 83 |
"consequent": { |
| 84 |
"type": "AssignmentExpression", |
| 85 |
"start":56,"end":62,"loc":{"start":{"line":2,"column":6,"index":56},"end":{"line":2,"column":12,"index":62}}, |
| 86 |
"operator": "+=", |
| 87 |
"left": { |
| 88 |
"type": "Identifier", |
| 89 |
"start":56,"end":57,"loc":{"start":{"line":2,"column":6,"index":56},"end":{"line":2,"column":7,"index":57},"identifierName":"b"}, |
| 90 |
"name": "b" |
| 91 |
}, |
| 92 |
"right": { |
| 93 |
"type": "Identifier", |
| 94 |
"start":61,"end":62,"loc":{"start":{"line":2,"column":11,"index":61},"end":{"line":2,"column":12,"index":62},"identifierName":"c"}, |
| 95 |
"name": "c" |
| 96 |
}, |
| 97 |
"extra": { |
| 98 |
"parenthesized": true, |
| 99 |
"parenStart": 55 |
| 100 |
} |
| 101 |
}, |
| 102 |
"alternate": { |
| 103 |
"type": "ArrowFunctionExpression", |
| 104 |
"start":66,"end":72,"loc":{"start":{"line":2,"column":16,"index":66},"end":{"line":2,"column":22,"index":72}}, |
| 105 |
"id": null, |
| 106 |
"generator": false, |
| 107 |
"async": false, |
| 108 |
"params": [ |
| 109 |
{ |
| 110 |
"type": "Identifier", |
| 111 |
"start":66,"end":67,"loc":{"start":{"line":2,"column":16,"index":66},"end":{"line":2,"column":17,"index":67},"identifierName":"d"}, |
| 112 |
"name": "d" |
| 113 |
} |
| 114 |
], |
| 115 |
"body": { |
| 116 |
"type": "Identifier", |
| 117 |
"start":71,"end":72,"loc":{"start":{"line":2,"column":21,"index":71},"end":{"line":2,"column":22,"index":72},"identifierName":"e"}, |
| 118 |
"name": "e" |
| 119 |
} |
| 120 |
}, |
| 121 |
"extra": { |
| 122 |
"parenthesized": true, |
| 123 |
"parenStart": 50 |
| 124 |
} |
| 125 |
}, |
| 126 |
"trailingComments": [ |
| 127 |
{ |
| 128 |
"type": "CommentLine", |
| 129 |
"value": " a ? (b += c) : (d => e)", |
| 130 |
"start":75,"end":101,"loc":{"start":{"line":2,"column":25,"index":75},"end":{"line":2,"column":51,"index":101}} |
| 131 |
} |
| 132 |
], |
| 133 |
"leadingComments": [ |
| 134 |
{ |
| 135 |
"type": "CommentLine", |
| 136 |
"value": " a ? (b = c) : (d => e)", |
| 137 |
"start":24,"end":49,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":49,"index":49}} |
| 138 |
} |
| 139 |
] |
| 140 |
}, |
| 141 |
{ |
| 142 |
"type": "ExpressionStatement", |
| 143 |
"start":103,"end":130,"loc":{"start":{"line":4,"column":0,"index":103},"end":{"line":4,"column":27,"index":130}}, |
| 144 |
"expression": { |
| 145 |
"type": "ConditionalExpression", |
| 146 |
"start":104,"end":128,"loc":{"start":{"line":4,"column":1,"index":104},"end":{"line":4,"column":25,"index":128}}, |
| 147 |
"test": { |
| 148 |
"type": "Identifier", |
| 149 |
"start":104,"end":105,"loc":{"start":{"line":4,"column":1,"index":104},"end":{"line":4,"column":2,"index":105},"identifierName":"a"}, |
| 150 |
"name": "a" |
| 151 |
}, |
| 152 |
"consequent": { |
| 153 |
"type": "ArrowFunctionExpression", |
| 154 |
"start":108,"end":124,"loc":{"start":{"line":4,"column":5,"index":108},"end":{"line":4,"column":21,"index":124}}, |
| 155 |
"predicate": null, |
| 156 |
"returnType": { |
| 157 |
"type": "TypeAnnotation", |
| 158 |
"start":116,"end":119,"loc":{"start":{"line":4,"column":13,"index":116},"end":{"line":4,"column":16,"index":119}}, |
| 159 |
"typeAnnotation": { |
| 160 |
"type": "GenericTypeAnnotation", |
| 161 |
"start":118,"end":119,"loc":{"start":{"line":4,"column":15,"index":118},"end":{"line":4,"column":16,"index":119}}, |
| 162 |
"typeParameters": null, |
| 163 |
"id": { |
| 164 |
"type": "Identifier", |
| 165 |
"start":118,"end":119,"loc":{"start":{"line":4,"column":15,"index":118},"end":{"line":4,"column":16,"index":119},"identifierName":"d"}, |
| 166 |
"name": "d" |
| 167 |
} |
| 168 |
} |
| 169 |
}, |
| 170 |
"id": null, |
| 171 |
"generator": false, |
| 172 |
"async": false, |
| 173 |
"params": [ |
| 174 |
{ |
| 175 |
"type": "AssignmentPattern", |
| 176 |
"start":109,"end":114,"loc":{"start":{"line":4,"column":6,"index":109},"end":{"line":4,"column":11,"index":114}}, |
| 177 |
"left": { |
| 178 |
"type": "Identifier", |
| 179 |
"start":109,"end":110,"loc":{"start":{"line":4,"column":6,"index":109},"end":{"line":4,"column":7,"index":110},"identifierName":"b"}, |
| 180 |
"name": "b" |
| 181 |
}, |
| 182 |
"right": { |
| 183 |
"type": "Identifier", |
| 184 |
"start":113,"end":114,"loc":{"start":{"line":4,"column":10,"index":113},"end":{"line":4,"column":11,"index":114},"identifierName":"c"}, |
| 185 |
"name": "c" |
| 186 |
} |
| 187 |
} |
| 188 |
], |
| 189 |
"body": { |
| 190 |
"type": "Identifier", |
| 191 |
"start":123,"end":124,"loc":{"start":{"line":4,"column":20,"index":123},"end":{"line":4,"column":21,"index":124},"identifierName":"e"}, |
| 192 |
"name": "e" |
| 193 |
} |
| 194 |
}, |
| 195 |
"alternate": { |
| 196 |
"type": "Identifier", |
| 197 |
"start":127,"end":128,"loc":{"start":{"line":4,"column":24,"index":127},"end":{"line":4,"column":25,"index":128},"identifierName":"f"}, |
| 198 |
"name": "f" |
| 199 |
}, |
| 200 |
"extra": { |
| 201 |
"parenthesized": true, |
| 202 |
"parenStart": 103 |
| 203 |
} |
| 204 |
}, |
| 205 |
"trailingComments": [ |
| 206 |
{ |
| 207 |
"type": "CommentLine", |
| 208 |
"value": " a ? ((b = c): d => e) : f", |
| 209 |
"start":131,"end":159,"loc":{"start":{"line":4,"column":28,"index":131},"end":{"line":4,"column":56,"index":159}} |
| 210 |
} |
| 211 |
], |
| 212 |
"leadingComments": [ |
| 213 |
{ |
| 214 |
"type": "CommentLine", |
| 215 |
"value": " a ? (b += c) : (d => e)", |
| 216 |
"start":75,"end":101,"loc":{"start":{"line":2,"column":25,"index":75},"end":{"line":2,"column":51,"index":101}} |
| 217 |
} |
| 218 |
] |
| 219 |
}, |
| 220 |
{ |
| 221 |
"type": "ExpressionStatement", |
| 222 |
"start":160,"end":188,"loc":{"start":{"line":5,"column":0,"index":160},"end":{"line":5,"column":28,"index":188}}, |
| 223 |
"expression": { |
| 224 |
"type": "TypeCastExpression", |
| 225 |
"start":161,"end":186,"loc":{"start":{"line":5,"column":1,"index":161},"end":{"line":5,"column":26,"index":186}}, |
| 226 |
"expression": { |
| 227 |
"type": "ConditionalExpression", |
| 228 |
"start":161,"end":182,"loc":{"start":{"line":5,"column":1,"index":161},"end":{"line":5,"column":22,"index":182}}, |
| 229 |
"test": { |
| 230 |
"type": "Identifier", |
| 231 |
"start":161,"end":162,"loc":{"start":{"line":5,"column":1,"index":161},"end":{"line":5,"column":2,"index":162},"identifierName":"a"}, |
| 232 |
"name": "a" |
| 233 |
}, |
| 234 |
"consequent": { |
| 235 |
"type": "AssignmentExpression", |
| 236 |
"start":166,"end":172,"loc":{"start":{"line":5,"column":6,"index":166},"end":{"line":5,"column":12,"index":172}}, |
| 237 |
"operator": "+=", |
| 238 |
"left": { |
| 239 |
"type": "Identifier", |
| 240 |
"start":166,"end":167,"loc":{"start":{"line":5,"column":6,"index":166},"end":{"line":5,"column":7,"index":167},"identifierName":"b"}, |
| 241 |
"name": "b" |
| 242 |
}, |
| 243 |
"right": { |
| 244 |
"type": "Identifier", |
| 245 |
"start":171,"end":172,"loc":{"start":{"line":5,"column":11,"index":171},"end":{"line":5,"column":12,"index":172},"identifierName":"c"}, |
| 246 |
"name": "c" |
| 247 |
}, |
| 248 |
"extra": { |
| 249 |
"parenthesized": true, |
| 250 |
"parenStart": 165 |
| 251 |
} |
| 252 |
}, |
| 253 |
"alternate": { |
| 254 |
"type": "ArrowFunctionExpression", |
| 255 |
"start":176,"end":182,"loc":{"start":{"line":5,"column":16,"index":176},"end":{"line":5,"column":22,"index":182}}, |
| 256 |
"id": null, |
| 257 |
"generator": false, |
| 258 |
"async": false, |
| 259 |
"params": [ |
| 260 |
{ |
| 261 |
"type": "Identifier", |
| 262 |
"start":176,"end":177,"loc":{"start":{"line":5,"column":16,"index":176},"end":{"line":5,"column":17,"index":177},"identifierName":"d"}, |
| 263 |
"name": "d" |
| 264 |
} |
| 265 |
], |
| 266 |
"body": { |
| 267 |
"type": "Identifier", |
| 268 |
"start":181,"end":182,"loc":{"start":{"line":5,"column":21,"index":181},"end":{"line":5,"column":22,"index":182},"identifierName":"e"}, |
| 269 |
"name": "e" |
| 270 |
} |
| 271 |
} |
| 272 |
}, |
| 273 |
"typeAnnotation": { |
| 274 |
"type": "TypeAnnotation", |
| 275 |
"start":183,"end":186,"loc":{"start":{"line":5,"column":23,"index":183},"end":{"line":5,"column":26,"index":186}}, |
| 276 |
"typeAnnotation": { |
| 277 |
"type": "GenericTypeAnnotation", |
| 278 |
"start":185,"end":186,"loc":{"start":{"line":5,"column":25,"index":185},"end":{"line":5,"column":26,"index":186}}, |
| 279 |
"typeParameters": null, |
| 280 |
"id": { |
| 281 |
"type": "Identifier", |
| 282 |
"start":185,"end":186,"loc":{"start":{"line":5,"column":25,"index":185},"end":{"line":5,"column":26,"index":186},"identifierName":"f"}, |
| 283 |
"name": "f" |
| 284 |
} |
| 285 |
} |
| 286 |
}, |
| 287 |
"extra": { |
| 288 |
"parenthesized": true, |
| 289 |
"parenStart": 160 |
| 290 |
} |
| 291 |
}, |
| 292 |
"trailingComments": [ |
| 293 |
{ |
| 294 |
"type": "CommentLine", |
| 295 |
"value": " ((a ? (b += c) : (d => e)) : f)", |
| 296 |
"start":189,"end":223,"loc":{"start":{"line":5,"column":29,"index":189},"end":{"line":5,"column":63,"index":223}} |
| 297 |
} |
| 298 |
], |
| 299 |
"leadingComments": [ |
| 300 |
{ |
| 301 |
"type": "CommentLine", |
| 302 |
"value": " a ? ((b = c): d => e) : f", |
| 303 |
"start":131,"end":159,"loc":{"start":{"line":4,"column":28,"index":131},"end":{"line":4,"column":56,"index":159}} |
| 304 |
} |
| 305 |
] |
| 306 |
}, |
| 307 |
{ |
| 308 |
"type": "ExpressionStatement", |
| 309 |
"start":225,"end":253,"loc":{"start":{"line":7,"column":0,"index":225},"end":{"line":7,"column":28,"index":253}}, |
| 310 |
"expression": { |
| 311 |
"type": "ConditionalExpression", |
| 312 |
"start":226,"end":251,"loc":{"start":{"line":7,"column":1,"index":226},"end":{"line":7,"column":26,"index":251}}, |
| 313 |
"test": { |
| 314 |
"type": "Identifier", |
| 315 |
"start":226,"end":227,"loc":{"start":{"line":7,"column":1,"index":226},"end":{"line":7,"column":2,"index":227},"identifierName":"a"}, |
| 316 |
"name": "a" |
| 317 |
}, |
| 318 |
"consequent": { |
| 319 |
"type": "ArrowFunctionExpression", |
| 320 |
"start":230,"end":242,"loc":{"start":{"line":7,"column":5,"index":230},"end":{"line":7,"column":17,"index":242}}, |
| 321 |
"id": null, |
| 322 |
"generator": false, |
| 323 |
"async": false, |
| 324 |
"params": [ |
| 325 |
{ |
| 326 |
"type": "Identifier", |
| 327 |
"start":230,"end":231,"loc":{"start":{"line":7,"column":5,"index":230},"end":{"line":7,"column":6,"index":231},"identifierName":"b"}, |
| 328 |
"name": "b" |
| 329 |
} |
| 330 |
], |
| 331 |
"body": { |
| 332 |
"type": "AssignmentExpression", |
| 333 |
"start":236,"end":241,"loc":{"start":{"line":7,"column":11,"index":236},"end":{"line":7,"column":16,"index":241}}, |
| 334 |
"operator": "=", |
| 335 |
"left": { |
| 336 |
"type": "Identifier", |
| 337 |
"start":236,"end":237,"loc":{"start":{"line":7,"column":11,"index":236},"end":{"line":7,"column":12,"index":237},"identifierName":"c"}, |
| 338 |
"name": "c" |
| 339 |
}, |
| 340 |
"right": { |
| 341 |
"type": "Identifier", |
| 342 |
"start":240,"end":241,"loc":{"start":{"line":7,"column":15,"index":240},"end":{"line":7,"column":16,"index":241},"identifierName":"d"}, |
| 343 |
"name": "d" |
| 344 |
}, |
| 345 |
"extra": { |
| 346 |
"parenthesized": true, |
| 347 |
"parenStart": 235 |
| 348 |
} |
| 349 |
} |
| 350 |
}, |
| 351 |
"alternate": { |
| 352 |
"type": "ArrowFunctionExpression", |
| 353 |
"start":245,"end":251,"loc":{"start":{"line":7,"column":20,"index":245},"end":{"line":7,"column":26,"index":251}}, |
| 354 |
"id": null, |
| 355 |
"generator": false, |
| 356 |
"async": false, |
| 357 |
"params": [ |
| 358 |
{ |
| 359 |
"type": "Identifier", |
| 360 |
"start":245,"end":246,"loc":{"start":{"line":7,"column":20,"index":245},"end":{"line":7,"column":21,"index":246},"identifierName":"e"}, |
| 361 |
"name": "e" |
| 362 |
} |
| 363 |
], |
| 364 |
"body": { |
| 365 |
"type": "Identifier", |
| 366 |
"start":250,"end":251,"loc":{"start":{"line":7,"column":25,"index":250},"end":{"line":7,"column":26,"index":251},"identifierName":"f"}, |
| 367 |
"name": "f" |
| 368 |
} |
| 369 |
}, |
| 370 |
"extra": { |
| 371 |
"parenthesized": true, |
| 372 |
"parenStart": 225 |
| 373 |
} |
| 374 |
}, |
| 375 |
"trailingComments": [ |
| 376 |
{ |
| 377 |
"type": "CommentLine", |
| 378 |
"value": " a ? (b => (c = d)) : (e => f)", |
| 379 |
"start":254,"end":286,"loc":{"start":{"line":7,"column":29,"index":254},"end":{"line":7,"column":61,"index":286}} |
| 380 |
} |
| 381 |
], |
| 382 |
"leadingComments": [ |
| 383 |
{ |
| 384 |
"type": "CommentLine", |
| 385 |
"value": " ((a ? (b += c) : (d => e)) : f)", |
| 386 |
"start":189,"end":223,"loc":{"start":{"line":5,"column":29,"index":189},"end":{"line":5,"column":63,"index":223}} |
| 387 |
} |
| 388 |
] |
| 389 |
}, |
| 390 |
{ |
| 391 |
"type": "ExpressionStatement", |
| 392 |
"start":287,"end":316,"loc":{"start":{"line":8,"column":0,"index":287},"end":{"line":8,"column":29,"index":316}}, |
| 393 |
"expression": { |
| 394 |
"type": "ConditionalExpression", |
| 395 |
"start":288,"end":314,"loc":{"start":{"line":8,"column":1,"index":288},"end":{"line":8,"column":27,"index":314}}, |
| 396 |
"test": { |
| 397 |
"type": "Identifier", |
| 398 |
"start":288,"end":289,"loc":{"start":{"line":8,"column":1,"index":288},"end":{"line":8,"column":2,"index":289},"identifierName":"a"}, |
| 399 |
"name": "a" |
| 400 |
}, |
| 401 |
"consequent": { |
| 402 |
"type": "ArrowFunctionExpression", |
| 403 |
"start":292,"end":305,"loc":{"start":{"line":8,"column":5,"index":292},"end":{"line":8,"column":18,"index":305}}, |
| 404 |
"id": null, |
| 405 |
"generator": false, |
| 406 |
"async": false, |
| 407 |
"params": [ |
| 408 |
{ |
| 409 |
"type": "Identifier", |
| 410 |
"start":292,"end":293,"loc":{"start":{"line":8,"column":5,"index":292},"end":{"line":8,"column":6,"index":293},"identifierName":"b"}, |
| 411 |
"name": "b" |
| 412 |
} |
| 413 |
], |
| 414 |
"body": { |
| 415 |
"type": "AssignmentExpression", |
| 416 |
"start":298,"end":304,"loc":{"start":{"line":8,"column":11,"index":298},"end":{"line":8,"column":17,"index":304}}, |
| 417 |
"operator": "+=", |
| 418 |
"left": { |
| 419 |
"type": "Identifier", |
| 420 |
"start":298,"end":299,"loc":{"start":{"line":8,"column":11,"index":298},"end":{"line":8,"column":12,"index":299},"identifierName":"c"}, |
| 421 |
"name": "c" |
| 422 |
}, |
| 423 |
"right": { |
| 424 |
"type": "Identifier", |
| 425 |
"start":303,"end":304,"loc":{"start":{"line":8,"column":16,"index":303},"end":{"line":8,"column":17,"index":304},"identifierName":"d"}, |
| 426 |
"name": "d" |
| 427 |
}, |
| 428 |
"extra": { |
| 429 |
"parenthesized": true, |
| 430 |
"parenStart": 297 |
| 431 |
} |
| 432 |
} |
| 433 |
}, |
| 434 |
"alternate": { |
| 435 |
"type": "ArrowFunctionExpression", |
| 436 |
"start":308,"end":314,"loc":{"start":{"line":8,"column":21,"index":308},"end":{"line":8,"column":27,"index":314}}, |
| 437 |
"id": null, |
| 438 |
"generator": false, |
| 439 |
"async": false, |
| 440 |
"params": [ |
| 441 |
{ |
| 442 |
"type": "Identifier", |
| 443 |
"start":308,"end":309,"loc":{"start":{"line":8,"column":21,"index":308},"end":{"line":8,"column":22,"index":309},"identifierName":"e"}, |
| 444 |
"name": "e" |
| 445 |
} |
| 446 |
], |
| 447 |
"body": { |
| 448 |
"type": "Identifier", |
| 449 |
"start":313,"end":314,"loc":{"start":{"line":8,"column":26,"index":313},"end":{"line":8,"column":27,"index":314},"identifierName":"f"}, |
| 450 |
"name": "f" |
| 451 |
} |
| 452 |
}, |
| 453 |
"extra": { |
| 454 |
"parenthesized": true, |
| 455 |
"parenStart": 287 |
| 456 |
} |
| 457 |
}, |
| 458 |
"trailingComments": [ |
| 459 |
{ |
| 460 |
"type": "CommentLine", |
| 461 |
"value": " a ? (b => (c += d)) : (e => f)", |
| 462 |
"start":317,"end":350,"loc":{"start":{"line":8,"column":30,"index":317},"end":{"line":8,"column":63,"index":350}} |
| 463 |
} |
| 464 |
], |
| 465 |
"leadingComments": [ |
| 466 |
{ |
| 467 |
"type": "CommentLine", |
| 468 |
"value": " a ? (b => (c = d)) : (e => f)", |
| 469 |
"start":254,"end":286,"loc":{"start":{"line":7,"column":29,"index":254},"end":{"line":7,"column":61,"index":286}} |
| 470 |
} |
| 471 |
] |
| 472 |
}, |
| 473 |
{ |
| 474 |
"type": "ExpressionStatement", |
| 475 |
"start":352,"end":384,"loc":{"start":{"line":10,"column":0,"index":352},"end":{"line":10,"column":32,"index":384}}, |
| 476 |
"expression": { |
| 477 |
"type": "ConditionalExpression", |
| 478 |
"start":353,"end":382,"loc":{"start":{"line":10,"column":1,"index":353},"end":{"line":10,"column":30,"index":382}}, |
| 479 |
"test": { |
| 480 |
"type": "Identifier", |
| 481 |
"start":353,"end":354,"loc":{"start":{"line":10,"column":1,"index":353},"end":{"line":10,"column":2,"index":354},"identifierName":"a"}, |
| 482 |
"name": "a" |
| 483 |
}, |
| 484 |
"consequent": { |
| 485 |
"type": "ArrowFunctionExpression", |
| 486 |
"start":357,"end":378,"loc":{"start":{"line":10,"column":5,"index":357},"end":{"line":10,"column":26,"index":378}}, |
| 487 |
"id": null, |
| 488 |
"generator": false, |
| 489 |
"async": false, |
| 490 |
"params": [ |
| 491 |
{ |
| 492 |
"type": "Identifier", |
| 493 |
"start":357,"end":358,"loc":{"start":{"line":10,"column":5,"index":357},"end":{"line":10,"column":6,"index":358},"identifierName":"b"}, |
| 494 |
"name": "b" |
| 495 |
} |
| 496 |
], |
| 497 |
"body": { |
| 498 |
"type": "ArrowFunctionExpression", |
| 499 |
"start":362,"end":378,"loc":{"start":{"line":10,"column":10,"index":362},"end":{"line":10,"column":26,"index":378}}, |
| 500 |
"predicate": null, |
| 501 |
"returnType": { |
| 502 |
"type": "TypeAnnotation", |
| 503 |
"start":370,"end":373,"loc":{"start":{"line":10,"column":18,"index":370},"end":{"line":10,"column":21,"index":373}}, |
| 504 |
"typeAnnotation": { |
| 505 |
"type": "GenericTypeAnnotation", |
| 506 |
"start":372,"end":373,"loc":{"start":{"line":10,"column":20,"index":372},"end":{"line":10,"column":21,"index":373}}, |
| 507 |
"typeParameters": null, |
| 508 |
"id": { |
| 509 |
"type": "Identifier", |
| 510 |
"start":372,"end":373,"loc":{"start":{"line":10,"column":20,"index":372},"end":{"line":10,"column":21,"index":373},"identifierName":"e"}, |
| 511 |
"name": "e" |
| 512 |
} |
| 513 |
} |
| 514 |
}, |
| 515 |
"id": null, |
| 516 |
"generator": false, |
| 517 |
"async": false, |
| 518 |
"params": [ |
| 519 |
{ |
| 520 |
"type": "AssignmentPattern", |
| 521 |
"start":363,"end":368,"loc":{"start":{"line":10,"column":11,"index":363},"end":{"line":10,"column":16,"index":368}}, |
| 522 |
"left": { |
| 523 |
"type": "Identifier", |
| 524 |
"start":363,"end":364,"loc":{"start":{"line":10,"column":11,"index":363},"end":{"line":10,"column":12,"index":364},"identifierName":"c"}, |
| 525 |
"name": "c" |
| 526 |
}, |
| 527 |
"right": { |
| 528 |
"type": "Identifier", |
| 529 |
"start":367,"end":368,"loc":{"start":{"line":10,"column":15,"index":367},"end":{"line":10,"column":16,"index":368},"identifierName":"d"}, |
| 530 |
"name": "d" |
| 531 |
} |
| 532 |
} |
| 533 |
], |
| 534 |
"body": { |
| 535 |
"type": "Identifier", |
| 536 |
"start":377,"end":378,"loc":{"start":{"line":10,"column":25,"index":377},"end":{"line":10,"column":26,"index":378},"identifierName":"f"}, |
| 537 |
"name": "f" |
| 538 |
} |
| 539 |
} |
| 540 |
}, |
| 541 |
"alternate": { |
| 542 |
"type": "Identifier", |
| 543 |
"start":381,"end":382,"loc":{"start":{"line":10,"column":29,"index":381},"end":{"line":10,"column":30,"index":382},"identifierName":"g"}, |
| 544 |
"name": "g" |
| 545 |
}, |
| 546 |
"extra": { |
| 547 |
"parenthesized": true, |
| 548 |
"parenStart": 352 |
| 549 |
} |
| 550 |
}, |
| 551 |
"trailingComments": [ |
| 552 |
{ |
| 553 |
"type": "CommentLine", |
| 554 |
"value": " a ? (b => ((c = d): e => f)) : g", |
| 555 |
"start":385,"end":420,"loc":{"start":{"line":10,"column":33,"index":385},"end":{"line":10,"column":68,"index":420}} |
| 556 |
} |
| 557 |
], |
| 558 |
"leadingComments": [ |
| 559 |
{ |
| 560 |
"type": "CommentLine", |
| 561 |
"value": " a ? (b => (c += d)) : (e => f)", |
| 562 |
"start":317,"end":350,"loc":{"start":{"line":8,"column":30,"index":317},"end":{"line":8,"column":63,"index":350}} |
| 563 |
} |
| 564 |
] |
| 565 |
}, |
| 566 |
{ |
| 567 |
"type": "ExpressionStatement", |
| 568 |
"start":421,"end":454,"loc":{"start":{"line":11,"column":0,"index":421},"end":{"line":11,"column":33,"index":454}}, |
| 569 |
"expression": { |
| 570 |
"type": "TypeCastExpression", |
| 571 |
"start":422,"end":452,"loc":{"start":{"line":11,"column":1,"index":422},"end":{"line":11,"column":31,"index":452}}, |
| 572 |
"expression": { |
| 573 |
"type": "ConditionalExpression", |
| 574 |
"start":422,"end":448,"loc":{"start":{"line":11,"column":1,"index":422},"end":{"line":11,"column":27,"index":448}}, |
| 575 |
"test": { |
| 576 |
"type": "Identifier", |
| 577 |
"start":422,"end":423,"loc":{"start":{"line":11,"column":1,"index":422},"end":{"line":11,"column":2,"index":423},"identifierName":"a"}, |
| 578 |
"name": "a" |
| 579 |
}, |
| 580 |
"consequent": { |
| 581 |
"type": "ArrowFunctionExpression", |
| 582 |
"start":426,"end":439,"loc":{"start":{"line":11,"column":5,"index":426},"end":{"line":11,"column":18,"index":439}}, |
| 583 |
"id": null, |
| 584 |
"generator": false, |
| 585 |
"async": false, |
| 586 |
"params": [ |
| 587 |
{ |
| 588 |
"type": "Identifier", |
| 589 |
"start":426,"end":427,"loc":{"start":{"line":11,"column":5,"index":426},"end":{"line":11,"column":6,"index":427},"identifierName":"b"}, |
| 590 |
"name": "b" |
| 591 |
} |
| 592 |
], |
| 593 |
"body": { |
| 594 |
"type": "AssignmentExpression", |
| 595 |
"start":432,"end":438,"loc":{"start":{"line":11,"column":11,"index":432},"end":{"line":11,"column":17,"index":438}}, |
| 596 |
"operator": "+=", |
| 597 |
"left": { |
| 598 |
"type": "Identifier", |
| 599 |
"start":432,"end":433,"loc":{"start":{"line":11,"column":11,"index":432},"end":{"line":11,"column":12,"index":433},"identifierName":"c"}, |
| 600 |
"name": "c" |
| 601 |
}, |
| 602 |
"right": { |
| 603 |
"type": "Identifier", |
| 604 |
"start":437,"end":438,"loc":{"start":{"line":11,"column":16,"index":437},"end":{"line":11,"column":17,"index":438},"identifierName":"d"}, |
| 605 |
"name": "d" |
| 606 |
}, |
| 607 |
"extra": { |
| 608 |
"parenthesized": true, |
| 609 |
"parenStart": 431 |
| 610 |
} |
| 611 |
} |
| 612 |
}, |
| 613 |
"alternate": { |
| 614 |
"type": "ArrowFunctionExpression", |
| 615 |
"start":442,"end":448,"loc":{"start":{"line":11,"column":21,"index":442},"end":{"line":11,"column":27,"index":448}}, |
| 616 |
"id": null, |
| 617 |
"generator": false, |
| 618 |
"async": false, |
| 619 |
"params": [ |
| 620 |
{ |
| 621 |
"type": "Identifier", |
| 622 |
"start":442,"end":443,"loc":{"start":{"line":11,"column":21,"index":442},"end":{"line":11,"column":22,"index":443},"identifierName":"e"}, |
| 623 |
"name": "e" |
| 624 |
} |
| 625 |
], |
| 626 |
"body": { |
| 627 |
"type": "Identifier", |
| 628 |
"start":447,"end":448,"loc":{"start":{"line":11,"column":26,"index":447},"end":{"line":11,"column":27,"index":448},"identifierName":"f"}, |
| 629 |
"name": "f" |
| 630 |
} |
| 631 |
} |
| 632 |
}, |
| 633 |
"typeAnnotation": { |
| 634 |
"type": "TypeAnnotation", |
| 635 |
"start":449,"end":452,"loc":{"start":{"line":11,"column":28,"index":449},"end":{"line":11,"column":31,"index":452}}, |
| 636 |
"typeAnnotation": { |
| 637 |
"type": "GenericTypeAnnotation", |
| 638 |
"start":451,"end":452,"loc":{"start":{"line":11,"column":30,"index":451},"end":{"line":11,"column":31,"index":452}}, |
| 639 |
"typeParameters": null, |
| 640 |
"id": { |
| 641 |
"type": "Identifier", |
| 642 |
"start":451,"end":452,"loc":{"start":{"line":11,"column":30,"index":451},"end":{"line":11,"column":31,"index":452},"identifierName":"g"}, |
| 643 |
"name": "g" |
| 644 |
} |
| 645 |
} |
| 646 |
}, |
| 647 |
"extra": { |
| 648 |
"parenthesized": true, |
| 649 |
"parenStart": 421 |
| 650 |
} |
| 651 |
}, |
| 652 |
"trailingComments": [ |
| 653 |
{ |
| 654 |
"type": "CommentLine", |
| 655 |
"value": " ((a ? (b => (c += d)) : (e => f)) : g)", |
| 656 |
"start":455,"end":496,"loc":{"start":{"line":11,"column":34,"index":455},"end":{"line":11,"column":75,"index":496}} |
| 657 |
} |
| 658 |
], |
| 659 |
"leadingComments": [ |
| 660 |
{ |
| 661 |
"type": "CommentLine", |
| 662 |
"value": " a ? (b => ((c = d): e => f)) : g", |
| 663 |
"start":385,"end":420,"loc":{"start":{"line":10,"column":33,"index":385},"end":{"line":10,"column":68,"index":420}} |
| 664 |
} |
| 665 |
] |
| 666 |
} |
| 667 |
], |
| 668 |
"directives": [] |
| 669 |
}, |
| 670 |
"comments": [ |
| 671 |
{ |
| 672 |
"type": "CommentLine", |
| 673 |
"value": " a ? (b = c) : (d => e)", |
| 674 |
"start":24,"end":49,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":49,"index":49}} |
| 675 |
}, |
| 676 |
{ |
| 677 |
"type": "CommentLine", |
| 678 |
"value": " a ? (b += c) : (d => e)", |
| 679 |
"start":75,"end":101,"loc":{"start":{"line":2,"column":25,"index":75},"end":{"line":2,"column":51,"index":101}} |
| 680 |
}, |
| 681 |
{ |
| 682 |
"type": "CommentLine", |
| 683 |
"value": " a ? ((b = c): d => e) : f", |
| 684 |
"start":131,"end":159,"loc":{"start":{"line":4,"column":28,"index":131},"end":{"line":4,"column":56,"index":159}} |
| 685 |
}, |
| 686 |
{ |
| 687 |
"type": "CommentLine", |
| 688 |
"value": " ((a ? (b += c) : (d => e)) : f)", |
| 689 |
"start":189,"end":223,"loc":{"start":{"line":5,"column":29,"index":189},"end":{"line":5,"column":63,"index":223}} |
| 690 |
}, |
| 691 |
{ |
| 692 |
"type": "CommentLine", |
| 693 |
"value": " a ? (b => (c = d)) : (e => f)", |
| 694 |
"start":254,"end":286,"loc":{"start":{"line":7,"column":29,"index":254},"end":{"line":7,"column":61,"index":286}} |
| 695 |
}, |
| 696 |
{ |
| 697 |
"type": "CommentLine", |
| 698 |
"value": " a ? (b => (c += d)) : (e => f)", |
| 699 |
"start":317,"end":350,"loc":{"start":{"line":8,"column":30,"index":317},"end":{"line":8,"column":63,"index":350}} |
| 700 |
}, |
| 701 |
{ |
| 702 |
"type": "CommentLine", |
| 703 |
"value": " a ? (b => ((c = d): e => f)) : g", |
| 704 |
"start":385,"end":420,"loc":{"start":{"line":10,"column":33,"index":385},"end":{"line":10,"column":68,"index":420}} |
| 705 |
}, |
| 706 |
{ |
| 707 |
"type": "CommentLine", |
| 708 |
"value": " ((a ? (b => (c += d)) : (e => f)) : g)", |
| 709 |
"start":455,"end":496,"loc":{"start":{"line":11,"column":34,"index":455},"end":{"line":11,"column":75,"index":496}} |
| 710 |
} |
| 711 |
] |
| 712 |
} |