| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":62,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":62,"index":62}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":62,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":62,"index":62}}, |
| 7 |
"sourceType": "script", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "ExpressionStatement", |
| 12 |
"start":0,"end":62,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":62,"index":62}}, |
| 13 |
"expression": { |
| 14 |
"type": "BinaryExpression", |
| 15 |
"start":0,"end":62,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":62,"index":62}}, |
| 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": "DoExpression", |
| 24 |
"start":9,"end":62,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":62,"index":62}}, |
| 25 |
"async": false, |
| 26 |
"body": { |
| 27 |
"type": "BlockStatement", |
| 28 |
"start":12,"end":62,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":62,"index":62}}, |
| 29 |
"body": [ |
| 30 |
{ |
| 31 |
"type": "ForStatement", |
| 32 |
"start":14,"end":60,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":60,"index":60}}, |
| 33 |
"init": { |
| 34 |
"type": "VariableDeclaration", |
| 35 |
"start":19,"end":29,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":29,"index":29}}, |
| 36 |
"declarations": [ |
| 37 |
{ |
| 38 |
"type": "VariableDeclarator", |
| 39 |
"start":23,"end":29,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":29,"index":29}}, |
| 40 |
"id": { |
| 41 |
"type": "Identifier", |
| 42 |
"start":23,"end":24,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":24,"index":24},"identifierName":"i"}, |
| 43 |
"name": "i" |
| 44 |
}, |
| 45 |
"init": { |
| 46 |
"type": "TopicReference", |
| 47 |
"start":27,"end":29,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":29,"index":29}} |
| 48 |
} |
| 49 |
} |
| 50 |
], |
| 51 |
"kind": "let" |
| 52 |
}, |
| 53 |
"test": { |
| 54 |
"type": "CallExpression", |
| 55 |
"start":31,"end":47,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":47,"index":47}}, |
| 56 |
"callee": { |
| 57 |
"type": "Identifier", |
| 58 |
"start":31,"end":40,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":40,"index":40},"identifierName":"predicate"}, |
| 59 |
"name": "predicate" |
| 60 |
}, |
| 61 |
"arguments": [ |
| 62 |
{ |
| 63 |
"type": "Identifier", |
| 64 |
"start":41,"end":42,"loc":{"start":{"line":1,"column":41,"index":41},"end":{"line":1,"column":42,"index":42},"identifierName":"i"}, |
| 65 |
"name": "i" |
| 66 |
}, |
| 67 |
{ |
| 68 |
"type": "TopicReference", |
| 69 |
"start":44,"end":46,"loc":{"start":{"line":1,"column":44,"index":44},"end":{"line":1,"column":46,"index":46}} |
| 70 |
} |
| 71 |
] |
| 72 |
}, |
| 73 |
"update": { |
| 74 |
"type": "AssignmentExpression", |
| 75 |
"start":49,"end":56,"loc":{"start":{"line":1,"column":49,"index":49},"end":{"line":1,"column":56,"index":56}}, |
| 76 |
"operator": "+=", |
| 77 |
"left": { |
| 78 |
"type": "Identifier", |
| 79 |
"start":49,"end":50,"loc":{"start":{"line":1,"column":49,"index":49},"end":{"line":1,"column":50,"index":50},"identifierName":"i"}, |
| 80 |
"name": "i" |
| 81 |
}, |
| 82 |
"right": { |
| 83 |
"type": "TopicReference", |
| 84 |
"start":54,"end":56,"loc":{"start":{"line":1,"column":54,"index":54},"end":{"line":1,"column":56,"index":56}} |
| 85 |
} |
| 86 |
}, |
| 87 |
"body": { |
| 88 |
"type": "ExpressionStatement", |
| 89 |
"start":58,"end":60,"loc":{"start":{"line":1,"column":58,"index":58},"end":{"line":1,"column":60,"index":60}}, |
| 90 |
"expression": { |
| 91 |
"type": "Identifier", |
| 92 |
"start":58,"end":59,"loc":{"start":{"line":1,"column":58,"index":58},"end":{"line":1,"column":59,"index":59},"identifierName":"i"}, |
| 93 |
"name": "i" |
| 94 |
} |
| 95 |
} |
| 96 |
} |
| 97 |
], |
| 98 |
"directives": [] |
| 99 |
} |
| 100 |
} |
| 101 |
} |
| 102 |
} |
| 103 |
], |
| 104 |
"directives": [] |
| 105 |
} |
| 106 |
} |