{ "type": "Script", "span": { "start": 17, "end": 186, "ctxt": 0 }, "body": [ { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 26, "end": 27, "ctxt": 0 }, "value": "f", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 28, "end": 37, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 28, "end": 37, "ctxt": 0 }, "value": "s", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 29, "end": 37, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 31, "end": 37, "ctxt": 0 }, "kind": "string" } } } } ], "decorators": [], "span": { "start": 17, "end": 47, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 38, "end": 46, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 40, "end": 46, "ctxt": 0 }, "kind": "string" } } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 57, "end": 58, "ctxt": 0 }, "value": "f", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 59, "end": 68, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 59, "end": 68, "ctxt": 0 }, "value": "n", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 60, "end": 68, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 62, "end": 68, "ctxt": 0 }, "kind": "number" } } } } ], "decorators": [], "span": { "start": 48, "end": 78, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 69, "end": 77, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 71, "end": 77, "ctxt": 0 }, "kind": "number" } } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 88, "end": 89, "ctxt": 0 }, "value": "f", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 93, "end": 97, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 93, "end": 97, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 94, "end": 97, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 96, "end": 97, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 96, "end": 97, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 79, "end": 102, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": { "type": "TsTypeParameterDeclaration", "span": { "start": 89, "end": 92, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 90, "end": 91, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 90, "end": 91, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "constraint": null, "default": null } ] }, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 98, "end": 101, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 100, "end": 101, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 100, "end": 101, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 112, "end": 113, "ctxt": 0 }, "value": "f", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 114, "end": 115, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 114, "end": 115, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 103, "end": 125, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 122, "end": 125, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 116, "end": 121, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 118, "end": 121, "ctxt": 0 }, "kind": "any" } } }, { "type": "VariableDeclaration", "span": { "start": 127, "end": 186, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 131, "end": 186, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 131, "end": 132, "ctxt": 0 }, "value": "v", "optional": false, "typeAnnotation": null }, "init": { "type": "ObjectExpression", "span": { "start": 135, "end": 186, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Computed", "span": { "start": 141, "end": 148, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 142, "end": 147, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 142, "end": 143, "ctxt": 0 }, "value": "f", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 144, "end": 146, "ctxt": 0 }, "value": "", "raw": "\"\"" } } ], "typeArguments": null } }, "value": { "type": "NumericLiteral", "span": { "start": 150, "end": 151, "ctxt": 0 }, "value": 0.0, "raw": "0" } }, { "type": "KeyValueProperty", "key": { "type": "Computed", "span": { "start": 157, "end": 163, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 158, "end": 162, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 158, "end": 159, "ctxt": 0 }, "value": "f", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 160, "end": 161, "ctxt": 0 }, "value": 0.0, "raw": "0" } } ], "typeArguments": null } }, "value": { "type": "NumericLiteral", "span": { "start": 165, "end": 166, "ctxt": 0 }, "value": 0.0, "raw": "0" } }, { "type": "KeyValueProperty", "key": { "type": "Computed", "span": { "start": 172, "end": 181, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 173, "end": 180, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 173, "end": 174, "ctxt": 0 }, "value": "f", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "BooleanLiteral", "span": { "start": 175, "end": 179, "ctxt": 0 }, "value": true } } ], "typeArguments": null } }, "value": { "type": "NumericLiteral", "span": { "start": 183, "end": 184, "ctxt": 0 }, "value": 0.0, "raw": "0" } } ] }, "definite": false } ] } ], "interpreter": null }