{ "type": "Program", "statements": [ { "type": "TSTypeAliasDeclaration", "id": { "type": "Identifier", "name": "Movable", "loc": { "start": { "line": 17, "column": 6 }, "end": { "line": 17, "column": 13 } } }, "typeAnnotation": { "type": "TSTypeLiteral", "members": [ { "type": "TSMethodSignature", "computed": false, "optional": false, "isGetAccessor": false, "isSetAccessor": false, "key": { "type": "Identifier", "name": "move", "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 9 } } }, "params": [ { "type": "Identifier", "name": "distance", "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 18, "column": 20 }, "end": { "line": 18, "column": 26 } } }, "loc": { "start": { "line": 18, "column": 10 }, "end": { "line": 18, "column": 18 } } } ], "typeAnnotation": { "type": "TSVoidKeyword", "loc": { "start": { "line": 18, "column": 29 }, "end": { "line": 18, "column": 33 } } }, "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 34 } } } ], "loc": { "start": { "line": 17, "column": 16 }, "end": { "line": 19, "column": 2 } } }, "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 19, "column": 3 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "car", "loc": { "start": { "line": 21, "column": 7 }, "end": { "line": 21, "column": 10 } } }, "init": { "type": "TSSatisfiesExpression", "expression": { "type": "ObjectExpression", "properties": [ { "type": "Property", "method": true, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "start", "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 10 } } }, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 22, "column": 16 } } }, "loc": { "start": { "line": 22, "column": 10 }, "end": { "line": 22, "column": 16 } } }, "loc": { "start": { "line": 22, "column": 10 }, "end": { "line": 22, "column": 16 } } }, "kind": "init", "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 16 } } }, { "type": "Property", "method": true, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "move", "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 23, "column": 9 } } }, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [ { "type": "Identifier", "name": "d", "loc": { "start": { "line": 23, "column": 10 }, "end": { "line": 23, "column": 11 } } } ], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 23, "column": 13 }, "end": { "line": 25, "column": 6 } } }, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 25, "column": 6 } } }, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 25, "column": 6 } } }, "kind": "init", "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 25, "column": 6 } } }, { "type": "Property", "method": true, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "stop", "loc": { "start": { "line": 26, "column": 5 }, "end": { "line": 26, "column": 9 } } }, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 26, "column": 12 }, "end": { "line": 26, "column": 15 } } }, "loc": { "start": { "line": 26, "column": 9 }, "end": { "line": 26, "column": 15 } } }, "loc": { "start": { "line": 26, "column": 9 }, "end": { "line": 26, "column": 15 } } }, "kind": "init", "loc": { "start": { "line": 26, "column": 5 }, "end": { "line": 26, "column": 15 } } } ], "loc": { "start": { "line": 21, "column": 13 }, "end": { "line": 27, "column": 2 } } }, "typeAnnotation": { "type": "TSIntersectionType", "types": [ { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "Movable", "loc": { "start": { "line": 27, "column": 13 }, "end": { "line": 27, "column": 20 } } }, "loc": { "start": { "line": 27, "column": 13 }, "end": { "line": 27, "column": 20 } } }, { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "Record", "loc": { "start": { "line": 27, "column": 23 }, "end": { "line": 27, "column": 29 } } }, "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "TSStringKeyword", "loc": { "start": { "line": 27, "column": 30 }, "end": { "line": 27, "column": 36 } } }, { "type": "TSUnknownKeyword", "loc": { "start": { "line": 27, "column": 38 }, "end": { "line": 27, "column": 45 } } } ], "loc": { "start": { "line": 27, "column": 29 }, "end": { "line": 27, "column": 46 } } }, "loc": { "start": { "line": 27, "column": 23 }, "end": { "line": 27, "column": 29 } } } ], "loc": { "start": { "line": 27, "column": 13 }, "end": { "line": 27, "column": 29 } } }, "loc": { "start": { "line": 21, "column": 13 }, "end": { "line": 27, "column": 47 } } }, "loc": { "start": { "line": 21, "column": 7 }, "end": { "line": 27, "column": 47 } } } ], "kind": "const", "loc": { "start": { "line": 21, "column": 1 }, "end": { "line": 27, "column": 47 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 27, "column": 47 } } }