{ "type": "Script", "span": { "start": 68, "end": 598, "ctxt": 0 }, "body": [ { "type": "VariableDeclaration", "span": { "start": 68, "end": 91, "ctxt": 0 }, "kind": "var", "declare": true, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 80, "end": 90, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 80, "end": 81, "ctxt": 0 }, "value": "a", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 81, "end": 90, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 83, "end": 90, "ctxt": 0 }, "kind": "boolean" } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 92, "end": 124, "ctxt": 0 }, "kind": "var", "declare": true, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 104, "end": 123, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 104, "end": 105, "ctxt": 0 }, "value": "p", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 105, "end": 123, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 107, "end": 123, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 107, "end": 114, "ctxt": 0 }, "value": "Promise", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 114, "end": 123, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 115, "end": 122, "ctxt": 0 }, "kind": "boolean" } ] } } } }, "init": null, "definite": false } ] }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 142, "end": 144, "ctxt": 0 }, "value": "fn", "optional": false }, "declare": true, "params": [ { "type": "Parameter", "span": { "start": 145, "end": 158, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 145, "end": 158, "ctxt": 0 }, "value": "arg0", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 149, "end": 158, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 151, "end": 158, "ctxt": 0 }, "kind": "boolean" } } } }, { "type": "Parameter", "span": { "start": 160, "end": 173, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 160, "end": 173, "ctxt": 0 }, "value": "arg1", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 164, "end": 173, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 166, "end": 173, "ctxt": 0 }, "kind": "boolean" } } } }, { "type": "Parameter", "span": { "start": 175, "end": 188, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 175, "end": 188, "ctxt": 0 }, "value": "arg2", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 179, "end": 188, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 181, "end": 188, "ctxt": 0 }, "kind": "boolean" } } } } ], "decorators": [], "span": { "start": 125, "end": 196, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 189, "end": 195, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 191, "end": 195, "ctxt": 0 }, "kind": "void" } } }, { "type": "VariableDeclaration", "span": { "start": 197, "end": 271, "ctxt": 0 }, "kind": "var", "declare": true, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 209, "end": 270, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 209, "end": 210, "ctxt": 0 }, "value": "o", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 210, "end": 270, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 212, "end": 270, "ctxt": 0 }, "members": [ { "type": "TsMethodSignature", "span": { "start": 214, "end": 268, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 214, "end": 216, "ctxt": 0 }, "value": "fn", "optional": false }, "computed": false, "optional": false, "params": [ { "type": "Identifier", "span": { "start": 217, "end": 230, "ctxt": 0 }, "value": "arg0", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 221, "end": 230, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 223, "end": 230, "ctxt": 0 }, "kind": "boolean" } } }, { "type": "Identifier", "span": { "start": 232, "end": 245, "ctxt": 0 }, "value": "arg1", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 236, "end": 245, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 238, "end": 245, "ctxt": 0 }, "kind": "boolean" } } }, { "type": "Identifier", "span": { "start": 247, "end": 260, "ctxt": 0 }, "value": "arg2", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 251, "end": 260, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 253, "end": 260, "ctxt": 0 }, "kind": "boolean" } } } ], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 261, "end": 267, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 263, "end": 267, "ctxt": 0 }, "kind": "void" } }, "typeParams": null } ] } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 272, "end": 355, "ctxt": 0 }, "kind": "var", "declare": true, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 284, "end": 354, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 284, "end": 287, "ctxt": 0 }, "value": "pfn", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 287, "end": 354, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 289, "end": 354, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 289, "end": 296, "ctxt": 0 }, "value": "Promise", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 296, "end": 354, "ctxt": 0 }, "params": [ { "type": "TsTypeLiteral", "span": { "start": 297, "end": 353, "ctxt": 0 }, "members": [ { "type": "TsCallSignatureDeclaration", "span": { "start": 299, "end": 351, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 300, "end": 313, "ctxt": 0 }, "value": "arg0", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 304, "end": 313, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 306, "end": 313, "ctxt": 0 }, "kind": "boolean" } } }, { "type": "Identifier", "span": { "start": 315, "end": 328, "ctxt": 0 }, "value": "arg1", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 319, "end": 328, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 321, "end": 328, "ctxt": 0 }, "kind": "boolean" } } }, { "type": "Identifier", "span": { "start": 330, "end": 343, "ctxt": 0 }, "value": "arg2", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 334, "end": 343, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 336, "end": 343, "ctxt": 0 }, "kind": "boolean" } } } ], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 344, "end": 350, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 346, "end": 350, "ctxt": 0 }, "kind": "void" } }, "typeParams": null } ] } ] } } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 356, "end": 440, "ctxt": 0 }, "kind": "var", "declare": true, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 368, "end": 439, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 368, "end": 370, "ctxt": 0 }, "value": "po", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 370, "end": 439, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 372, "end": 439, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 372, "end": 379, "ctxt": 0 }, "value": "Promise", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 379, "end": 439, "ctxt": 0 }, "params": [ { "type": "TsTypeLiteral", "span": { "start": 380, "end": 438, "ctxt": 0 }, "members": [ { "type": "TsMethodSignature", "span": { "start": 382, "end": 436, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 382, "end": 384, "ctxt": 0 }, "value": "fn", "optional": false }, "computed": false, "optional": false, "params": [ { "type": "Identifier", "span": { "start": 385, "end": 398, "ctxt": 0 }, "value": "arg0", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 389, "end": 398, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 391, "end": 398, "ctxt": 0 }, "kind": "boolean" } } }, { "type": "Identifier", "span": { "start": 400, "end": 413, "ctxt": 0 }, "value": "arg1", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 404, "end": 413, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 406, "end": 413, "ctxt": 0 }, "kind": "boolean" } } }, { "type": "Identifier", "span": { "start": 415, "end": 428, "ctxt": 0 }, "value": "arg2", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 419, "end": 428, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 421, "end": 428, "ctxt": 0 }, "kind": "boolean" } } } ], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 429, "end": 435, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 431, "end": 435, "ctxt": 0 }, "kind": "void" } }, "typeParams": null } ] } ] } } } }, "init": null, "definite": false } ] }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 458, "end": 464, "ctxt": 0 }, "value": "before", "optional": false }, "declare": true, "params": [], "decorators": [], "span": { "start": 441, "end": 473, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 466, "end": 472, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 468, "end": 472, "ctxt": 0 }, "kind": "void" } } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 491, "end": 496, "ctxt": 0 }, "value": "after", "optional": false }, "declare": true, "params": [], "decorators": [], "span": { "start": 474, "end": 505, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 498, "end": 504, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 500, "end": 504, "ctxt": 0 }, "kind": "void" } } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 521, "end": 525, "ctxt": 0 }, "value": "func", "optional": false }, "declare": false, "params": [], "decorators": [], "span": { "start": 506, "end": 598, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 543, "end": 598, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 549, "end": 558, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 549, "end": 557, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 549, "end": 555, "ctxt": 0 }, "value": "before", "optional": false }, "arguments": [], "typeArguments": null } }, { "type": "VariableDeclaration", "span": { "start": 563, "end": 583, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 567, "end": 582, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 567, "end": 568, "ctxt": 0 }, "value": "b", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 571, "end": 582, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 571, "end": 573, "ctxt": 0 }, "value": "fn", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 574, "end": 575, "ctxt": 0 }, "value": "a", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 577, "end": 578, "ctxt": 0 }, "value": "a", "optional": false } }, { "spread": null, "expression": { "type": "Identifier", "span": { "start": 580, "end": 581, "ctxt": 0 }, "value": "a", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 588, "end": 596, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 588, "end": 595, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 588, "end": 593, "ctxt": 0 }, "value": "after", "optional": false }, "arguments": [], "typeArguments": null } } ] }, "generator": false, "async": true, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 527, "end": 542, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 529, "end": 542, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 529, "end": 536, "ctxt": 0 }, "value": "Promise", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 536, "end": 542, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 537, "end": 541, "ctxt": 0 }, "kind": "void" } ] } } } } ], "interpreter": null }