{ "type": "Script", "span": { "start": 0, "end": 252, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 6, "end": 13, "ctxt": 0 }, "value": "clodule", "optional": false }, "declare": false, "span": { "start": 0, "end": 101, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 23, "end": 34, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 23, "end": 25, "ctxt": 0 }, "value": "id", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 25, "end": 33, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 27, "end": 33, "ctxt": 0 }, "kind": "string" } }, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassProperty", "span": { "start": 39, "end": 48, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 39, "end": 44, "ctxt": 0 }, "value": "value", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 44, "end": 47, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 46, "end": 47, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 46, "end": 47, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } }, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassMethod", "span": { "start": 54, "end": 99, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 69, "end": 72, "ctxt": 0 }, "value": "sfn", "optional": false }, "function": { "params": [ { "type": "Parameter", "span": { "start": 73, "end": 83, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 73, "end": 83, "ctxt": 0 }, "value": "id", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 75, "end": 83, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 77, "end": 83, "ctxt": 0 }, "kind": "string" } } } } ], "decorators": [], "span": { "start": 54, "end": 99, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 85, "end": 99, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 87, "end": 97, "ctxt": 0 }, "argument": { "type": "NumericLiteral", "span": { "start": 94, "end": 96, "ctxt": 0 }, "value": 42.0 } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": true, "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 13, "end": 16, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 14, "end": 15, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 14, "end": 15, "ctxt": 0 }, "value": "T", "optional": false }, "constraint": null, "default": null } ] }, "superTypeParams": null, "implements": [] }, { "type": "TsModuleDeclaration", "span": { "start": 103, "end": 252, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 110, "end": 117, "ctxt": 0 }, "value": "clodule", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 118, "end": 252, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 168, "end": 250, "ctxt": 0 }, "declaration": { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 184, "end": 186, "ctxt": 0 }, "value": "fn", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 190, "end": 194, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 190, "end": 194, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 191, "end": 194, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 193, "end": 194, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 193, "end": 194, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 196, "end": 200, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 196, "end": 200, "ctxt": 0 }, "value": "y", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 197, "end": 200, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 199, "end": 200, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 199, "end": 200, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 175, "end": 250, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 210, "end": 250, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 220, "end": 244, "ctxt": 0 }, "argument": { "type": "CallExpression", "span": { "start": 227, "end": 243, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 227, "end": 238, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 227, "end": 234, "ctxt": 0 }, "value": "clodule", "optional": false }, "property": { "type": "Identifier", "span": { "start": 235, "end": 238, "ctxt": 0 }, "value": "sfn", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 239, "end": 242, "ctxt": 0 }, "value": "a", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } } } ], "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": { "type": "TsTypeParameterDeclaration", "span": { "start": 186, "end": 189, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 187, "end": 188, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 187, "end": 188, "ctxt": 0 }, "value": "T", "optional": false }, "constraint": null, "default": null } ] }, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 201, "end": 209, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 203, "end": 209, "ctxt": 0 }, "kind": "number" } } } } ] } } ], "interpreter": null }