{ "type": "Script", "span": { "start": 0, "end": 224, "ctxt": 0 }, "body": [ { "type": "TsInterfaceDeclaration", "span": { "start": 0, "end": 72, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 10, "end": 16, "ctxt": 0 }, "value": "Number", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 17, "end": 72, "ctxt": 0 }, "body": [ { "type": "TsMethodSignature", "span": { "start": 23, "end": 41, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 23, "end": 30, "ctxt": 0 }, "value": "doStuff", "optional": false }, "computed": false, "optional": false, "params": [], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 32, "end": 40, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 34, "end": 40, "ctxt": 0 }, "kind": "string" } }, "typeParams": null }, { "type": "TsMethodSignature", "span": { "start": 46, "end": 70, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 46, "end": 58, "ctxt": 0 }, "value": "doOtherStuff", "optional": false }, "computed": false, "optional": false, "params": [ { "type": "Identifier", "span": { "start": 62, "end": 65, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 63, "end": 65, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 64, "end": 65, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 64, "end": 65, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } } } ], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 66, "end": 69, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 68, "end": 69, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 68, "end": 69, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } }, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 58, "end": 61, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 59, "end": 60, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 59, "end": 60, "ctxt": 0 }, "value": "T", "optional": false }, "constraint": null, "default": null } ] } } ] } }, { "type": "VariableDeclaration", "span": { "start": 74, "end": 84, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 78, "end": 83, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 78, "end": 79, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 82, "end": 83, "ctxt": 0 }, "value": 1.0 }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 85, "end": 113, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 89, "end": 112, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 89, "end": 90, "ctxt": 0 }, "value": "a", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 90, "end": 98, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 92, "end": 98, "ctxt": 0 }, "kind": "string" } } }, "init": { "type": "CallExpression", "span": { "start": 101, "end": 112, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 101, "end": 110, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 101, "end": 102, "ctxt": 0 }, "value": "x", "optional": false }, "property": { "type": "Identifier", "span": { "start": 103, "end": 110, "ctxt": 0 }, "value": "doStuff", "optional": false } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 114, "end": 151, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 118, "end": 150, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 118, "end": 119, "ctxt": 0 }, "value": "b", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 119, "end": 127, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 121, "end": 127, "ctxt": 0 }, "kind": "string" } } }, "init": { "type": "CallExpression", "span": { "start": 130, "end": 150, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 130, "end": 144, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 130, "end": 131, "ctxt": 0 }, "value": "x", "optional": false }, "property": { "type": "Identifier", "span": { "start": 132, "end": 144, "ctxt": 0 }, "value": "doOtherStuff", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 145, "end": 149, "ctxt": 0 }, "value": "hm", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 152, "end": 183, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 156, "end": 182, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 156, "end": 157, "ctxt": 0 }, "value": "c", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 157, "end": 165, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 159, "end": 165, "ctxt": 0 }, "kind": "string" } } }, "init": { "type": "CallExpression", "span": { "start": 168, "end": 182, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 168, "end": 180, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 168, "end": 169, "ctxt": 0 }, "value": "x", "optional": false }, "property": { "type": "Computed", "span": { "start": 169, "end": 180, "ctxt": 0 }, "expression": { "type": "StringLiteral", "span": { "start": 170, "end": 179, "ctxt": 0 }, "value": "doStuff", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } } } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 184, "end": 224, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 188, "end": 223, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 188, "end": 189, "ctxt": 0 }, "value": "d", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 189, "end": 197, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 191, "end": 197, "ctxt": 0 }, "kind": "string" } } }, "init": { "type": "CallExpression", "span": { "start": 200, "end": 223, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 200, "end": 217, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 200, "end": 201, "ctxt": 0 }, "value": "x", "optional": false }, "property": { "type": "Computed", "span": { "start": 201, "end": 217, "ctxt": 0 }, "expression": { "type": "StringLiteral", "span": { "start": 202, "end": 216, "ctxt": 0 }, "value": "doOtherStuff", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } } } }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 218, "end": 222, "ctxt": 0 }, "value": "hm", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } } } ], "typeArguments": null }, "definite": false } ] } ], "interpreter": null }