{ "type": "Script", "span": { "start": 1, "end": 226, "ctxt": 0 }, "body": [ { "type": "TsInterfaceDeclaration", "span": { "start": 1, "end": 73, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 11, "end": 17, "ctxt": 0 }, "value": "String", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 18, "end": 73, "ctxt": 0 }, "body": [ { "type": "TsMethodSignature", "span": { "start": 24, "end": 42, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 24, "end": 31, "ctxt": 0 }, "value": "doStuff", "optional": false }, "computed": false, "optional": false, "params": [], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 33, "end": 41, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 35, "end": 41, "ctxt": 0 }, "kind": "string" } }, "typeParams": null }, { "type": "TsMethodSignature", "span": { "start": 47, "end": 71, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 47, "end": 59, "ctxt": 0 }, "value": "doOtherStuff", "optional": false }, "computed": false, "optional": false, "params": [ { "type": "Identifier", "span": { "start": 63, "end": 66, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 64, "end": 66, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 65, "end": 66, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 65, "end": 66, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } } } ], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 67, "end": 70, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 69, "end": 70, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 69, "end": 70, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } }, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 59, "end": 62, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 60, "end": 61, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 60, "end": 61, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "const": false, "constraint": null, "default": null } ] } } ] } }, { "type": "VariableDeclaration", "span": { "start": 75, "end": 86, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 79, "end": 85, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 79, "end": 80, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": null }, "init": { "type": "StringLiteral", "span": { "start": 83, "end": 85, "ctxt": 0 }, "value": "", "raw": "''" }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 87, "end": 115, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 91, "end": 114, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 91, "end": 92, "ctxt": 0 }, "value": "a", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 92, "end": 100, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 94, "end": 100, "ctxt": 0 }, "kind": "string" } } }, "init": { "type": "CallExpression", "span": { "start": 103, "end": 114, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 103, "end": 112, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 103, "end": 104, "ctxt": 0 }, "value": "x", "optional": false }, "property": { "type": "Identifier", "span": { "start": 105, "end": 112, "ctxt": 0 }, "value": "doStuff", "optional": false } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 116, "end": 153, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 120, "end": 152, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 120, "end": 121, "ctxt": 0 }, "value": "b", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 121, "end": 129, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 123, "end": 129, "ctxt": 0 }, "kind": "string" } } }, "init": { "type": "CallExpression", "span": { "start": 132, "end": 152, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 132, "end": 146, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 132, "end": 133, "ctxt": 0 }, "value": "x", "optional": false }, "property": { "type": "Identifier", "span": { "start": 134, "end": 146, "ctxt": 0 }, "value": "doOtherStuff", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 147, "end": 151, "ctxt": 0 }, "value": "hm", "raw": "'hm'" } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 154, "end": 185, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 158, "end": 184, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 158, "end": 159, "ctxt": 0 }, "value": "c", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 159, "end": 167, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 161, "end": 167, "ctxt": 0 }, "kind": "string" } } }, "init": { "type": "CallExpression", "span": { "start": 170, "end": 184, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 170, "end": 182, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 170, "end": 171, "ctxt": 0 }, "value": "x", "optional": false }, "property": { "type": "Computed", "span": { "start": 171, "end": 182, "ctxt": 0 }, "expression": { "type": "StringLiteral", "span": { "start": 172, "end": 181, "ctxt": 0 }, "value": "doStuff", "raw": "'doStuff'" } } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 186, "end": 226, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 190, "end": 225, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 190, "end": 191, "ctxt": 0 }, "value": "d", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 191, "end": 199, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 193, "end": 199, "ctxt": 0 }, "kind": "string" } } }, "init": { "type": "CallExpression", "span": { "start": 202, "end": 225, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 202, "end": 219, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 202, "end": 203, "ctxt": 0 }, "value": "x", "optional": false }, "property": { "type": "Computed", "span": { "start": 203, "end": 219, "ctxt": 0 }, "expression": { "type": "StringLiteral", "span": { "start": 204, "end": 218, "ctxt": 0 }, "value": "doOtherStuff", "raw": "'doOtherStuff'" } } }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 220, "end": 224, "ctxt": 0 }, "value": "hm", "raw": "'hm'" } } ], "typeArguments": null }, "definite": false } ] } ], "interpreter": null }