{ "type": "Script", "span": { "start": 83, "end": 238, "ctxt": 0 }, "body": [ { "type": "TsInterfaceDeclaration", "span": { "start": 83, "end": 123, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 93, "end": 94, "ctxt": 0 }, "value": "A", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 95, "end": 123, "ctxt": 0 }, "body": [ { "type": "TsIndexSignature", "params": [ { "type": "Identifier", "span": { "start": 102, "end": 111, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 103, "end": 111, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 105, "end": 111, "ctxt": 0 }, "kind": "number" } } } ], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 112, "end": 120, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 114, "end": 120, "ctxt": 0 }, "kind": "string" } }, "readonly": false, "static": false, "span": { "start": 101, "end": 121, "ctxt": 0 } } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 126, "end": 178, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 136, "end": 137, "ctxt": 0 }, "value": "A", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 138, "end": 178, "ctxt": 0 }, "body": [ { "type": "TsIndexSignature", "params": [ { "type": "Identifier", "span": { "start": 145, "end": 154, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 146, "end": 154, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 148, "end": 154, "ctxt": 0 }, "kind": "string" } } } ], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 155, "end": 175, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 157, "end": 175, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 159, "end": 173, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 159, "end": 165, "ctxt": 0 }, "value": "length", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 165, "end": 173, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 167, "end": 173, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } }, "readonly": false, "static": false, "span": { "start": 144, "end": 176, "ctxt": 0 } } ] } }, { "type": "VariableDeclaration", "span": { "start": 180, "end": 189, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 184, "end": 188, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 184, "end": 185, "ctxt": 0 }, "value": "a", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 185, "end": 188, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 187, "end": 188, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 187, "end": 188, "ctxt": 0 }, "value": "A", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 190, "end": 203, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 194, "end": 202, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 194, "end": 195, "ctxt": 0 }, "value": "r", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 198, "end": 202, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 198, "end": 199, "ctxt": 0 }, "value": "a", "optional": false }, "property": { "type": "Computed", "span": { "start": 199, "end": 202, "ctxt": 0 }, "expression": { "type": "NumericLiteral", "span": { "start": 200, "end": 201, "ctxt": 0 }, "value": 1.0, "raw": "1" } } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 204, "end": 220, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 208, "end": 219, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 208, "end": 210, "ctxt": 0 }, "value": "r2", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 213, "end": 219, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 213, "end": 214, "ctxt": 0 }, "value": "a", "optional": false }, "property": { "type": "Computed", "span": { "start": 214, "end": 219, "ctxt": 0 }, "expression": { "type": "StringLiteral", "span": { "start": 215, "end": 218, "ctxt": 0 }, "value": "1", "raw": "'1'" } } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 221, "end": 238, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 225, "end": 237, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 225, "end": 227, "ctxt": 0 }, "value": "r3", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 230, "end": 237, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 230, "end": 231, "ctxt": 0 }, "value": "a", "optional": false }, "property": { "type": "Computed", "span": { "start": 231, "end": 237, "ctxt": 0 }, "expression": { "type": "StringLiteral", "span": { "start": 232, "end": 236, "ctxt": 0 }, "value": "hi", "raw": "'hi'" } } }, "definite": false } ] } ], "interpreter": null }