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