{ "type": "Script", "span": { "start": 20, "end": 207, "ctxt": 0 }, "body": [ { "type": "VariableDeclaration", "span": { "start": 20, "end": 65, "ctxt": 0 }, "kind": "const", "declare": true, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 34, "end": 64, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 34, "end": 36, "ctxt": 0 }, "value": "o1", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 36, "end": 64, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 38, "end": 64, "ctxt": 0 }, "types": [ { "type": "TsKeywordType", "span": { "start": 38, "end": 47, "ctxt": 0 }, "kind": "undefined" }, { "type": "TsParenthesizedType", "span": { "start": 50, "end": 64, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 51, "end": 63, "ctxt": 0 }, "params": [], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 54, "end": 63, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 57, "end": 63, "ctxt": 0 }, "kind": "number" } } } } ] } } }, "init": null, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 66, "end": 73, "ctxt": 0 }, "expression": { "type": "OptionalChainingExpression", "span": { "start": 66, "end": 72, "ctxt": 0 }, "questionDotToken": { "start": 68, "end": 69, "ctxt": 0 }, "base": { "type": "CallExpression", "span": { "start": 66, "end": 72, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 66, "end": 68, "ctxt": 0 }, "value": "o1", "optional": false }, "arguments": [], "typeArguments": null } } }, { "type": "VariableDeclaration", "span": { "start": 75, "end": 125, "ctxt": 0 }, "kind": "const", "declare": true, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 89, "end": 124, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 89, "end": 91, "ctxt": 0 }, "value": "o2", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 91, "end": 124, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 93, "end": 124, "ctxt": 0 }, "types": [ { "type": "TsKeywordType", "span": { "start": 93, "end": 102, "ctxt": 0 }, "kind": "undefined" }, { "type": "TsTypeLiteral", "span": { "start": 105, "end": 124, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 107, "end": 122, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 107, "end": 108, "ctxt": 0 }, "value": "b", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 108, "end": 122, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 110, "end": 122, "ctxt": 0 }, "params": [], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 113, "end": 122, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 116, "end": 122, "ctxt": 0 }, "kind": "number" } } } }, "typeParams": null } ] } ] } } }, "init": null, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 126, "end": 134, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 126, "end": 133, "ctxt": 0 }, "callee": { "type": "OptionalChainingExpression", "span": { "start": 126, "end": 131, "ctxt": 0 }, "questionDotToken": { "start": 128, "end": 129, "ctxt": 0 }, "base": { "type": "MemberExpression", "span": { "start": 126, "end": 131, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 126, "end": 128, "ctxt": 0 }, "value": "o2", "optional": false }, "property": { "type": "Identifier", "span": { "start": 130, "end": 131, "ctxt": 0 }, "value": "b", "optional": false } } }, "arguments": [], "typeArguments": null } }, { "type": "VariableDeclaration", "span": { "start": 136, "end": 195, "ctxt": 0 }, "kind": "const", "declare": true, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 150, "end": 194, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 150, "end": 152, "ctxt": 0 }, "value": "o3", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 152, "end": 194, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 154, "end": 194, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 156, "end": 192, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 156, "end": 157, "ctxt": 0 }, "value": "b", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 157, "end": 192, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 159, "end": 192, "ctxt": 0 }, "types": [ { "type": "TsParenthesizedType", "span": { "start": 159, "end": 180, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 160, "end": 179, "ctxt": 0 }, "params": [], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 163, "end": 179, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 166, "end": 179, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 168, "end": 177, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 168, "end": 169, "ctxt": 0 }, "value": "c", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 169, "end": 177, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 171, "end": 177, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } } } }, { "type": "TsKeywordType", "span": { "start": 183, "end": 192, "ctxt": 0 }, "kind": "undefined" } ] } }, "typeParams": null } ] } } }, "init": null, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 196, "end": 207, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 196, "end": 206, "ctxt": 0 }, "object": { "type": "OptionalChainingExpression", "span": { "start": 196, "end": 204, "ctxt": 0 }, "questionDotToken": { "start": 200, "end": 201, "ctxt": 0 }, "base": { "type": "CallExpression", "span": { "start": 196, "end": 204, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 196, "end": 200, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 196, "end": 198, "ctxt": 0 }, "value": "o3", "optional": false }, "property": { "type": "Identifier", "span": { "start": 199, "end": 200, "ctxt": 0 }, "value": "b", "optional": false } }, "arguments": [], "typeArguments": null } }, "property": { "type": "Identifier", "span": { "start": 205, "end": 206, "ctxt": 0 }, "value": "c", "optional": false } } } ], "interpreter": null }