{ "type": "Program", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "b", "decorators": [], "loc": { "start": { "line": 16, "column": 5 }, "end": { "line": 16, "column": 6 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 16, "column": 9 }, "end": { "line": 16, "column": 10 } } }, "loc": { "start": { "line": 16, "column": 5 }, "end": { "line": 16, "column": 10 } } } ], "kind": "let", "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 16, "column": 10 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 18, "column": 13 }, "end": { "line": 18, "column": 19 } } }, "decorators": [], "loc": { "start": { "line": 18, "column": 10 }, "end": { "line": 18, "column": 11 } } }, "init": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 18, "column": 22 }, "end": { "line": 18, "column": 23 } } }, "loc": { "start": { "line": 18, "column": 10 }, "end": { "line": 18, "column": 23 } } } ], "kind": "let", "loc": { "start": { "line": 18, "column": 6 }, "end": { "line": 18, "column": 23 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 18, "column": 25 }, "end": { "line": 18, "column": 26 } } }, "right": { "type": "NumberLiteral", "value": 10, "loc": { "start": { "line": 18, "column": 29 }, "end": { "line": 18, "column": 31 } } }, "loc": { "start": { "line": 18, "column": 25 }, "end": { "line": 18, "column": 31 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": false, "argument": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 18, "column": 33 }, "end": { "line": 18, "column": 34 } } }, "loc": { "start": { "line": 18, "column": 33 }, "end": { "line": 18, "column": 36 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "b", "decorators": [], "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 5 } } }, "right": { "type": "BinaryExpression", "operator": "+", "left": { "type": "Identifier", "name": "b", "decorators": [], "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 9 } } }, "right": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 19, "column": 12 }, "end": { "line": 19, "column": 13 } } }, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 13 } } }, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 13 } } }, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 13 } } } ], "loc": { "start": { "line": 18, "column": 38 }, "end": { "line": 20, "column": 2 } } }, "loc": { "start": { "line": 18, "column": 1 }, "end": { "line": 20, "column": 2 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 21, "column": 1 } } }