{ "type": "Program", "statements": [ { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [ { "type": "TSPropertySignature", "computed": false, "optional": false, "readonly": false, "key": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 6 } } }, "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 14 } } }, "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 15 } } } ], "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 19, "column": 2 } } }, "id": { "type": "Identifier", "name": "o", "decorators": [], "loc": { "start": { "line": 17, "column": 11 }, "end": { "line": 17, "column": 12 } } }, "extends": [], "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 19, "column": 2 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "o", "decorators": [], "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 9 } } }, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 9 } } }, "decorators": [], "loc": { "start": { "line": 21, "column": 5 }, "end": { "line": 21, "column": 6 } } }, "init": null, "loc": { "start": { "line": 21, "column": 5 }, "end": { "line": 21, "column": 6 } } } ], "kind": "var", "loc": { "start": { "line": 21, "column": 1 }, "end": { "line": 21, "column": 10 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "b", "decorators": [], "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 6 } } }, "init": { "type": "TSAsExpression", "expression": { "type": "ObjectExpression", "properties": [ { "type": "SpreadElement", "argument": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 22, "column": 14 } } }, "loc": { "start": { "line": 22, "column": 10 }, "end": { "line": 22, "column": 14 } } } ], "loc": { "start": { "line": 22, "column": 9 }, "end": { "line": 22, "column": 15 } } }, "typeAnnotation": { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "const", "decorators": [], "loc": { "start": { "line": 22, "column": 19 }, "end": { "line": 22, "column": 24 } } }, "loc": { "start": { "line": 22, "column": 19 }, "end": { "line": 22, "column": 24 } } }, "loc": { "start": { "line": 22, "column": 9 }, "end": { "line": 22, "column": 25 } } }, "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 25 } } } ], "kind": "var", "loc": { "start": { "line": 22, "column": 1 }, "end": { "line": 22, "column": 25 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "b", "decorators": [], "loc": { "start": { "line": 23, "column": 1 }, "end": { "line": 23, "column": 2 } } }, "property": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 23, "column": 3 }, "end": { "line": 23, "column": 4 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 23, "column": 1 }, "end": { "line": 23, "column": 4 } } }, "right": { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 23, "column": 7 }, "end": { "line": 23, "column": 8 } } }, "loc": { "start": { "line": 23, "column": 1 }, "end": { "line": 23, "column": 8 } } }, "loc": { "start": { "line": 23, "column": 1 }, "end": { "line": 23, "column": 9 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 23, "column": 9 } } }