| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":67,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":67}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":67,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":67}}, |
| 7 |
"sourceType": "module", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "FunctionDeclaration", |
| 12 |
"start":0,"end":67,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":67}}, |
| 13 |
"id": { |
| 14 |
"type": "Identifier", |
| 15 |
"start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"foo"}, |
| 16 |
"name": "foo" |
| 17 |
}, |
| 18 |
"generator": false, |
| 19 |
"async": false, |
| 20 |
"params": [], |
| 21 |
"predicate": null, |
| 22 |
"returnType": { |
| 23 |
"type": "TypeAnnotation", |
| 24 |
"start":14,"end":44,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":44,"index":44}}, |
| 25 |
"typeAnnotation": { |
| 26 |
"type": "ObjectTypeAnnotation", |
| 27 |
"start":16,"end":44,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":44,"index":44}}, |
| 28 |
"callProperties": [], |
| 29 |
"properties": [ |
| 30 |
{ |
| 31 |
"type": "ObjectTypeProperty", |
| 32 |
"start":18,"end":42,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":42,"index":42}}, |
| 33 |
"key": { |
| 34 |
"type": "Identifier", |
| 35 |
"start":18,"end":28,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":28,"index":28},"identifierName":"@@iterator"}, |
| 36 |
"name": "@@iterator" |
| 37 |
}, |
| 38 |
"static": false, |
| 39 |
"proto": false, |
| 40 |
"kind": "init", |
| 41 |
"method": false, |
| 42 |
"value": { |
| 43 |
"type": "FunctionTypeAnnotation", |
| 44 |
"start":30,"end":42,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":42,"index":42}}, |
| 45 |
"params": [], |
| 46 |
"rest": null, |
| 47 |
"this": null, |
| 48 |
"returnType": { |
| 49 |
"type": "StringTypeAnnotation", |
| 50 |
"start":36,"end":42,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":42,"index":42}} |
| 51 |
}, |
| 52 |
"typeParameters": null |
| 53 |
}, |
| 54 |
"variance": null, |
| 55 |
"optional": false |
| 56 |
} |
| 57 |
], |
| 58 |
"indexers": [], |
| 59 |
"internalSlots": [], |
| 60 |
"exact": false, |
| 61 |
"inexact": false |
| 62 |
} |
| 63 |
}, |
| 64 |
"body": { |
| 65 |
"type": "BlockStatement", |
| 66 |
"start":45,"end":67,"loc":{"start":{"line":1,"column":45,"index":45},"end":{"line":3,"column":1,"index":67}}, |
| 67 |
"body": [ |
| 68 |
{ |
| 69 |
"type": "ReturnStatement", |
| 70 |
"start":49,"end":65,"loc":{"start":{"line":2,"column":2,"index":49},"end":{"line":2,"column":18,"index":65}}, |
| 71 |
"argument": { |
| 72 |
"type": "TypeCastExpression", |
| 73 |
"start":57,"end":63,"loc":{"start":{"line":2,"column":10,"index":57},"end":{"line":2,"column":16,"index":63}}, |
| 74 |
"expression": { |
| 75 |
"type": "NumericLiteral", |
| 76 |
"start":57,"end":58,"loc":{"start":{"line":2,"column":10,"index":57},"end":{"line":2,"column":11,"index":58}}, |
| 77 |
"extra": { |
| 78 |
"rawValue": 0, |
| 79 |
"raw": "0" |
| 80 |
}, |
| 81 |
"value": 0 |
| 82 |
}, |
| 83 |
"typeAnnotation": { |
| 84 |
"type": "TypeAnnotation", |
| 85 |
"start":58,"end":63,"loc":{"start":{"line":2,"column":11,"index":58},"end":{"line":2,"column":16,"index":63}}, |
| 86 |
"typeAnnotation": { |
| 87 |
"type": "AnyTypeAnnotation", |
| 88 |
"start":60,"end":63,"loc":{"start":{"line":2,"column":13,"index":60},"end":{"line":2,"column":16,"index":63}} |
| 89 |
} |
| 90 |
}, |
| 91 |
"extra": { |
| 92 |
"parenthesized": true, |
| 93 |
"parenStart": 56 |
| 94 |
} |
| 95 |
} |
| 96 |
} |
| 97 |
], |
| 98 |
"directives": [] |
| 99 |
} |
| 100 |
} |
| 101 |
], |
| 102 |
"directives": [] |
| 103 |
} |
| 104 |
} |