| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":87,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":87}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":87,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":87}}, |
| 7 |
"sourceType": "script", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "ExpressionStatement", |
| 12 |
"start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}}, |
| 13 |
"expression": { |
| 14 |
"type": "BinaryExpression", |
| 15 |
"start":0,"end":11,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":11,"index":11}}, |
| 16 |
"left": { |
| 17 |
"type": "Identifier", |
| 18 |
"start":0,"end":5,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":5,"index":5},"identifierName":"value"}, |
| 19 |
"name": "value" |
| 20 |
}, |
| 21 |
"operator": "|>", |
| 22 |
"right": { |
| 23 |
"type": "TopicReference", |
| 24 |
"start":9,"end":11,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":11,"index":11}} |
| 25 |
} |
| 26 |
} |
| 27 |
}, |
| 28 |
{ |
| 29 |
"type": "ExpressionStatement", |
| 30 |
"start":14,"end":25,"loc":{"start":{"line":3,"column":0,"index":14},"end":{"line":3,"column":11,"index":25}}, |
| 31 |
"expression": { |
| 32 |
"type": "BinaryExpression", |
| 33 |
"start":14,"end":25,"loc":{"start":{"line":3,"column":0,"index":14},"end":{"line":3,"column":11,"index":25}}, |
| 34 |
"left": { |
| 35 |
"type": "Identifier", |
| 36 |
"start":14,"end":19,"loc":{"start":{"line":3,"column":0,"index":14},"end":{"line":3,"column":5,"index":19},"identifierName":"value"}, |
| 37 |
"name": "value" |
| 38 |
}, |
| 39 |
"operator": "|>", |
| 40 |
"right": { |
| 41 |
"type": "TopicReference", |
| 42 |
"start":23,"end":25,"loc":{"start":{"line":3,"column":9,"index":23},"end":{"line":3,"column":11,"index":25}} |
| 43 |
} |
| 44 |
} |
| 45 |
}, |
| 46 |
{ |
| 47 |
"type": "ExpressionStatement", |
| 48 |
"start":26,"end":34,"loc":{"start":{"line":4,"column":0,"index":26},"end":{"line":4,"column":8,"index":34}}, |
| 49 |
"expression": { |
| 50 |
"type": "Identifier", |
| 51 |
"start":26,"end":34,"loc":{"start":{"line":4,"column":0,"index":26},"end":{"line":4,"column":8,"index":34},"identifierName":"iterator"}, |
| 52 |
"name": "iterator" |
| 53 |
} |
| 54 |
}, |
| 55 |
{ |
| 56 |
"type": "DeclareClass", |
| 57 |
"start":36,"end":87,"loc":{"start":{"line":6,"column":0,"index":36},"end":{"line":8,"column":1,"index":87}}, |
| 58 |
"id": { |
| 59 |
"type": "Identifier", |
| 60 |
"start":50,"end":51,"loc":{"start":{"line":6,"column":14,"index":50},"end":{"line":6,"column":15,"index":51},"identifierName":"A"}, |
| 61 |
"name": "A" |
| 62 |
}, |
| 63 |
"typeParameters": null, |
| 64 |
"extends": [], |
| 65 |
"implements": [], |
| 66 |
"mixins": [], |
| 67 |
"body": { |
| 68 |
"type": "ObjectTypeAnnotation", |
| 69 |
"start":52,"end":87,"loc":{"start":{"line":6,"column":16,"index":52},"end":{"line":8,"column":1,"index":87}}, |
| 70 |
"callProperties": [], |
| 71 |
"properties": [ |
| 72 |
{ |
| 73 |
"type": "ObjectTypeProperty", |
| 74 |
"start":56,"end":84,"loc":{"start":{"line":7,"column":2,"index":56},"end":{"line":7,"column":30,"index":84}}, |
| 75 |
"key": { |
| 76 |
"type": "Identifier", |
| 77 |
"start":56,"end":66,"loc":{"start":{"line":7,"column":2,"index":56},"end":{"line":7,"column":12,"index":66},"identifierName":"@@iterator"}, |
| 78 |
"name": "@@iterator" |
| 79 |
}, |
| 80 |
"static": false, |
| 81 |
"proto": false, |
| 82 |
"kind": "init", |
| 83 |
"method": true, |
| 84 |
"value": { |
| 85 |
"type": "FunctionTypeAnnotation", |
| 86 |
"start":56,"end":84,"loc":{"start":{"line":7,"column":2,"index":56},"end":{"line":7,"column":30,"index":84}}, |
| 87 |
"params": [], |
| 88 |
"rest": null, |
| 89 |
"typeParameters": null, |
| 90 |
"this": null, |
| 91 |
"returnType": { |
| 92 |
"type": "GenericTypeAnnotation", |
| 93 |
"start":70,"end":84,"loc":{"start":{"line":7,"column":16,"index":70},"end":{"line":7,"column":30,"index":84}}, |
| 94 |
"typeParameters": { |
| 95 |
"type": "TypeParameterInstantiation", |
| 96 |
"start":78,"end":84,"loc":{"start":{"line":7,"column":24,"index":78},"end":{"line":7,"column":30,"index":84}}, |
| 97 |
"params": [ |
| 98 |
{ |
| 99 |
"type": "GenericTypeAnnotation", |
| 100 |
"start":79,"end":83,"loc":{"start":{"line":7,"column":25,"index":79},"end":{"line":7,"column":29,"index":83}}, |
| 101 |
"typeParameters": null, |
| 102 |
"id": { |
| 103 |
"type": "Identifier", |
| 104 |
"start":79,"end":83,"loc":{"start":{"line":7,"column":25,"index":79},"end":{"line":7,"column":29,"index":83},"identifierName":"File"}, |
| 105 |
"name": "File" |
| 106 |
} |
| 107 |
} |
| 108 |
] |
| 109 |
}, |
| 110 |
"id": { |
| 111 |
"type": "Identifier", |
| 112 |
"start":70,"end":78,"loc":{"start":{"line":7,"column":16,"index":70},"end":{"line":7,"column":24,"index":78},"identifierName":"Iterator"}, |
| 113 |
"name": "Iterator" |
| 114 |
} |
| 115 |
} |
| 116 |
}, |
| 117 |
"optional": false |
| 118 |
} |
| 119 |
], |
| 120 |
"indexers": [], |
| 121 |
"internalSlots": [], |
| 122 |
"exact": false |
| 123 |
} |
| 124 |
} |
| 125 |
], |
| 126 |
"directives": [] |
| 127 |
} |
| 128 |
} |