{ "type": "Program", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "isConnect", "loc": { "start": { "line": 16, "column": 5 }, "end": { "line": 16, "column": 14 } } }, "init": { "type": "BooleanLiteral", "value": false, "loc": { "start": { "line": 16, "column": 17 }, "end": { "line": 16, "column": 22 } } }, "loc": { "start": { "line": 16, "column": 5 }, "end": { "line": 16, "column": 22 } } } ], "kind": "let", "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 16, "column": 23 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "time", "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 9 } } }, "init": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 13 } } }, "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 13 } } } ], "kind": "let", "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 14 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "v", "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 6 } } }, "init": { "type": "ConditionalExpression", "test": { "type": "Identifier", "name": "isConnect", "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 18 } } }, "consequent": { "type": "BinaryExpression", "operator": "+", "left": { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 18, "column": 22 }, "end": { "line": 18, "column": 23 } } }, "right": { "type": "NumberLiteral", "value": 3, "loc": { "start": { "line": 18, "column": 26 }, "end": { "line": 18, "column": 27 } } }, "loc": { "start": { "line": 18, "column": 21 }, "end": { "line": 18, "column": 28 } } }, "alternate": { "type": "ConditionalExpression", "test": { "type": "BinaryExpression", "operator": "==", "left": { "type": "Identifier", "name": "time", "loc": { "start": { "line": 18, "column": 33 }, "end": { "line": 18, "column": 37 } } }, "right": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 18, "column": 41 }, "end": { "line": 18, "column": 42 } } }, "loc": { "start": { "line": 18, "column": 32 }, "end": { "line": 18, "column": 43 } } }, "consequent": { "type": "NumberLiteral", "value": 10, "loc": { "start": { "line": 18, "column": 46 }, "end": { "line": 18, "column": 48 } } }, "alternate": { "type": "Identifier", "name": "time", "loc": { "start": { "line": 18, "column": 51 }, "end": { "line": 18, "column": 55 } } }, "loc": { "start": { "line": 18, "column": 31 }, "end": { "line": 18, "column": 56 } } }, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 56 } } }, "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 56 } } } ], "kind": "let", "loc": { "start": { "line": 18, "column": 1 }, "end": { "line": 18, "column": 57 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 19, "column": 1 } } }