{ "type": "Program", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 8 } } }, "init": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 17, "column": 11 }, "end": { "line": 17, "column": 12 } } }, "loc": { "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 12 } } } ], "kind": "const", "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 13 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "b", "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 6 } } }, "init": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 10 } } }, "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 10 } } } ], "kind": "let", "loc": { "start": { "line": 18, "column": 1 }, "end": { "line": 18, "column": 11 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "c", "loc": { "start": { "line": 20, "column": 7 }, "end": { "line": 20, "column": 8 } } }, "init": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 20, "column": 11 }, "end": { "line": 20, "column": 12 } } }, "loc": { "start": { "line": 20, "column": 7 }, "end": { "line": 20, "column": 12 } } } ], "kind": "const", "loc": { "start": { "line": 20, "column": 1 }, "end": { "line": 20, "column": 13 } } }, { "type": "FunctionDeclaration", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "A", "loc": { "start": { "line": 21, "column": 10 }, "end": { "line": 21, "column": 11 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "b", "loc": { "start": { "line": 22, "column": 3 }, "end": { "line": 22, "column": 4 } } }, "right": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 22, "column": 7 }, "end": { "line": 22, "column": 8 } } }, "loc": { "start": { "line": 22, "column": 3 }, "end": { "line": 22, "column": 8 } } }, "loc": { "start": { "line": 22, "column": 3 }, "end": { "line": 22, "column": 9 } } } ], "loc": { "start": { "line": 21, "column": 14 }, "end": { "line": 23, "column": 2 } } }, "loc": { "start": { "line": 21, "column": 1 }, "end": { "line": 23, "column": 2 } } }, "loc": { "start": { "line": 21, "column": 1 }, "end": { "line": 23, "column": 2 } } }, { "type": "FunctionDeclaration", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "B", "loc": { "start": { "line": 25, "column": 10 }, "end": { "line": 25, "column": 11 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "d", "loc": { "start": { "line": 26, "column": 9 }, "end": { "line": 26, "column": 10 } } }, "init": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 26, "column": 13 }, "end": { "line": 26, "column": 14 } } }, "loc": { "start": { "line": 26, "column": 9 }, "end": { "line": 26, "column": 14 } } } ], "kind": "const", "loc": { "start": { "line": 26, "column": 3 }, "end": { "line": 26, "column": 15 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "e", "loc": { "start": { "line": 27, "column": 12 }, "end": { "line": 27, "column": 13 } } }, "init": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 27, "column": 16 }, "end": { "line": 27, "column": 17 } } }, "loc": { "start": { "line": 27, "column": 12 }, "end": { "line": 27, "column": 17 } } } ], "kind": "let", "loc": { "start": { "line": 27, "column": 8 }, "end": { "line": 27, "column": 17 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "e", "loc": { "start": { "line": 27, "column": 19 }, "end": { "line": 27, "column": 20 } } }, "right": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 27, "column": 23 }, "end": { "line": 27, "column": 24 } } }, "loc": { "start": { "line": 27, "column": 19 }, "end": { "line": 27, "column": 24 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": false, "argument": { "type": "Identifier", "name": "e", "loc": { "start": { "line": 27, "column": 26 }, "end": { "line": 27, "column": 27 } } }, "loc": { "start": { "line": 27, "column": 26 }, "end": { "line": 27, "column": 29 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "e", "loc": { "start": { "line": 28, "column": 5 }, "end": { "line": 28, "column": 6 } } }, "right": { "type": "BinaryExpression", "operator": "+", "left": { "type": "Identifier", "name": "e", "loc": { "start": { "line": 28, "column": 9 }, "end": { "line": 28, "column": 10 } } }, "right": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 28, "column": 13 }, "end": { "line": 28, "column": 14 } } }, "loc": { "start": { "line": 28, "column": 9 }, "end": { "line": 28, "column": 14 } } }, "loc": { "start": { "line": 28, "column": 5 }, "end": { "line": 28, "column": 14 } } }, "loc": { "start": { "line": 28, "column": 5 }, "end": { "line": 28, "column": 15 } } } ], "loc": { "start": { "line": 27, "column": 31 }, "end": { "line": 29, "column": 4 } } }, "loc": { "start": { "line": 27, "column": 3 }, "end": { "line": 29, "column": 4 } } } ], "loc": { "start": { "line": 25, "column": 14 }, "end": { "line": 30, "column": 2 } } }, "loc": { "start": { "line": 25, "column": 1 }, "end": { "line": 30, "column": 2 } } }, "loc": { "start": { "line": 25, "column": 1 }, "end": { "line": 30, "column": 2 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 32, "column": 1 }, "end": { "line": 32, "column": 2 } } }, "right": { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 32, "column": 5 }, "end": { "line": 32, "column": 6 } } }, "loc": { "start": { "line": 32, "column": 1 }, "end": { "line": 32, "column": 6 } } }, "loc": { "start": { "line": 32, "column": 1 }, "end": { "line": 32, "column": 7 } } }, { "type": "IfStatement", "test": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 34, "column": 5 }, "end": { "line": 34, "column": 6 } } }, "consequent": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "UpdateExpression", "operator": "++", "prefix": false, "argument": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 35, "column": 3 }, "end": { "line": 35, "column": 4 } } }, "loc": { "start": { "line": 35, "column": 3 }, "end": { "line": 35, "column": 6 } } }, "loc": { "start": { "line": 35, "column": 3 }, "end": { "line": 35, "column": 7 } } } ], "loc": { "start": { "line": 34, "column": 8 }, "end": { "line": 36, "column": 2 } } }, "alternate": null, "loc": { "start": { "line": 34, "column": 1 }, "end": { "line": 36, "column": 2 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 36, "column": 2 } } }