{ "type": "Script", "span": { "start": 40, "end": 246, "ctxt": 0 }, "body": [ { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 57, "end": 61, "ctxt": 0 }, "value": "call", "optional": false }, "declare": true, "params": [ { "type": "Parameter", "span": { "start": 89, "end": 119, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 89, "end": 119, "ctxt": 0 }, "value": "handler", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 96, "end": 119, "ctxt": 0 }, "typeAnnotation": { "type": "TsFunctionType", "span": { "start": 98, "end": 119, "ctxt": 0 }, "params": [ { "type": "RestElement", "span": { "start": 99, "end": 110, "ctxt": 0 }, "rest": { "start": 99, "end": 102, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 102, "end": 106, "ctxt": 0 }, "value": "args", "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 106, "end": 110, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 108, "end": 110, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 108, "end": 110, "ctxt": 0 }, "value": "TS", "optional": false }, "typeParams": null } } } ], "typeParams": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 112, "end": 119, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 115, "end": 119, "ctxt": 0 }, "kind": "void" } } } } } }, { "type": "Parameter", "span": { "start": 125, "end": 136, "ctxt": 0 }, "decorators": [], "pat": { "type": "RestElement", "span": { "start": 125, "end": 136, "ctxt": 0 }, "rest": { "start": 125, "end": 128, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 128, "end": 132, "ctxt": 0 }, "value": "args", "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 132, "end": 136, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 134, "end": 136, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 134, "end": 136, "ctxt": 0 }, "value": "TS", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 40, "end": 144, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": { "type": "TsTypeParameterDeclaration", "span": { "start": 61, "end": 83, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 62, "end": 82, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 62, "end": 64, "ctxt": 0 }, "value": "TS", "optional": false }, "in": false, "out": false, "constraint": { "type": "TsArrayType", "span": { "start": 73, "end": 82, "ctxt": 0 }, "elemType": { "type": "TsKeywordType", "span": { "start": 73, "end": 80, "ctxt": 0 }, "kind": "unknown" } }, "default": null } ] }, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 137, "end": 143, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 139, "end": 143, "ctxt": 0 }, "kind": "void" } } }, { "type": "ExpressionStatement", "span": { "start": 148, "end": 186, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 148, "end": 185, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 148, "end": 152, "ctxt": 0 }, "value": "call", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "ArrowFunctionExpression", "span": { "start": 153, "end": 184, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 154, "end": 163, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 155, "end": 163, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 157, "end": 163, "ctxt": 0 }, "kind": "number" } } }, { "type": "Identifier", "span": { "start": 165, "end": 174, "ctxt": 0 }, "value": "y", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 166, "end": 174, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 168, "end": 174, "ctxt": 0 }, "kind": "number" } } } ], "body": { "type": "BinaryExpression", "span": { "start": 179, "end": 184, "ctxt": 0 }, "operator": "+", "left": { "type": "Identifier", "span": { "start": 179, "end": 180, "ctxt": 0 }, "value": "x", "optional": false }, "right": { "type": "Identifier", "span": { "start": 183, "end": 184, "ctxt": 0 }, "value": "y", "optional": false } }, "async": false, "generator": false, "typeParameters": null, "returnType": null } } ], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 187, "end": 246, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 187, "end": 245, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 187, "end": 191, "ctxt": 0 }, "value": "call", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "ArrowFunctionExpression", "span": { "start": 192, "end": 223, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 193, "end": 202, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 194, "end": 202, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 196, "end": 202, "ctxt": 0 }, "kind": "number" } } }, { "type": "Identifier", "span": { "start": 204, "end": 213, "ctxt": 0 }, "value": "y", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 205, "end": 213, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 207, "end": 213, "ctxt": 0 }, "kind": "number" } } } ], "body": { "type": "BinaryExpression", "span": { "start": 218, "end": 223, "ctxt": 0 }, "operator": "+", "left": { "type": "Identifier", "span": { "start": 218, "end": 219, "ctxt": 0 }, "value": "x", "optional": false }, "right": { "type": "Identifier", "span": { "start": 222, "end": 223, "ctxt": 0 }, "value": "y", "optional": false } }, "async": false, "generator": false, "typeParameters": null, "returnType": null } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 225, "end": 226, "ctxt": 0 }, "value": 1.0, "raw": "1" } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 228, "end": 229, "ctxt": 0 }, "value": 2.0, "raw": "2" } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 231, "end": 232, "ctxt": 0 }, "value": 3.0, "raw": "3" } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 234, "end": 235, "ctxt": 0 }, "value": 4.0, "raw": "4" } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 237, "end": 238, "ctxt": 0 }, "value": 5.0, "raw": "5" } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 240, "end": 241, "ctxt": 0 }, "value": 6.0, "raw": "6" } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 243, "end": 244, "ctxt": 0 }, "value": 7.0, "raw": "7" } } ], "typeArguments": null } } ], "interpreter": null }