{ "type": "Script", "span": { "start": 16, "end": 119, "ctxt": 0 }, "body": [ { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 25, "end": 28, "ctxt": 0 }, "value": "foo", "optional": false }, "declare": false, "params": [], "decorators": [], "span": { "start": 16, "end": 47, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 34, "end": 47, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 36, "end": 45, "ctxt": 0 }, "argument": { "type": "StringLiteral", "span": { "start": 43, "end": 45, "ctxt": 0 }, "value": "", "raw": "''" } } ] }, "generator": false, "async": false, "typeParameters": { "type": "TsTypeParameterDeclaration", "span": { "start": 28, "end": 31, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 29, "end": 30, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 29, "end": 30, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "constraint": null, "default": null } ] }, "returnType": null }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 54, "end": 55, "ctxt": 0 }, "value": "C", "optional": false }, "declare": false, "span": { "start": 48, "end": 119, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 65, "end": 96, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 65, "end": 68, "ctxt": 0 }, "value": "bar", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 65, "end": 96, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 71, "end": 96, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 81, "end": 90, "ctxt": 0 }, "argument": { "type": "NumericLiteral", "span": { "start": 88, "end": 89, "ctxt": 0 }, "value": 0.0, "raw": "0" } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 101, "end": 117, "ctxt": 0 }, "key": { "type": "Computed", "span": { "start": 101, "end": 111, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 102, "end": 110, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 102, "end": 105, "ctxt": 0 }, "value": "foo", "optional": false }, "arguments": [], "typeArguments": { "type": "TsTypeParameterInstantiation", "span": { "start": 105, "end": 108, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 106, "end": 107, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 106, "end": 107, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] } } }, "function": { "params": [], "decorators": [], "span": { "start": 101, "end": 117, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 114, "end": 117, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 55, "end": 58, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 56, "end": 57, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 56, "end": 57, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "constraint": null, "default": null } ] }, "superTypeParams": null, "implements": [] } ], "interpreter": null }