{ "type": "Program", "statements": [ { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "then", "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 9 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "then", "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 9 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "onFulfilled", "typeAnnotation": { "type": "ETSUnionType", "types": [ { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "value", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 17, "column": 46 }, "end": { "line": 17, "column": 47 } } }, "loc": { "start": { "line": 17, "column": 46 }, "end": { "line": 17, "column": 48 } } }, "loc": { "start": { "line": 17, "column": 46 }, "end": { "line": 17, "column": 48 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 39 }, "end": { "line": 17, "column": 48 } } }, "loc": { "start": { "line": 17, "column": 39 }, "end": { "line": 17, "column": 48 } } } ], "returnType": { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 17, "column": 52 }, "end": { "line": 17, "column": 53 } } }, "loc": { "start": { "line": 17, "column": 52 }, "end": { "line": 17, "column": 54 } } }, "loc": { "start": { "line": 17, "column": 52 }, "end": { "line": 17, "column": 54 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "PL", "decorators": [], "loc": { "start": { "line": 17, "column": 54 }, "end": { "line": 17, "column": 56 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 17, "column": 57 }, "end": { "line": 17, "column": 58 } } }, "loc": { "start": { "line": 17, "column": 57 }, "end": { "line": 17, "column": 59 } } }, "loc": { "start": { "line": 17, "column": 57 }, "end": { "line": 17, "column": 59 } } } ], "loc": { "start": { "line": 17, "column": 56 }, "end": { "line": 17, "column": 59 } } }, "loc": { "start": { "line": 17, "column": 54 }, "end": { "line": 17, "column": 66 } } }, "loc": { "start": { "line": 17, "column": 54 }, "end": { "line": 17, "column": 66 } } } ], "loc": { "start": { "line": 17, "column": 52 }, "end": { "line": 17, "column": 66 } } } "throwMarker": "throws", "loc": { "start": { "line": 17, "column": 38 }, "end": { "line": 17, "column": 66 } } }, { "type": "ETSUndefinedType", "loc": { "start": { "line": 17, "column": 35 }, "end": { "line": 17, "column": 36 } } } ], "loc": { "start": { "line": 17, "column": 38 }, "end": { "line": 17, "column": 66 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 24 }, "end": { "line": 17, "column": 66 } } }, "loc": { "start": { "line": 17, "column": 24 }, "end": { "line": 17, "column": 66 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "onRejected", "typeAnnotation": { "type": "ETSUnionType", "types": [ { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "error", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "NullishType", "decorators": [], "loc": { "start": { "line": 18, "column": 34 }, "end": { "line": 18, "column": 45 } } }, "loc": { "start": { "line": 18, "column": 34 }, "end": { "line": 18, "column": 46 } } }, "loc": { "start": { "line": 18, "column": 34 }, "end": { "line": 18, "column": 46 } } }, "decorators": [], "loc": { "start": { "line": 18, "column": 27 }, "end": { "line": 18, "column": 46 } } }, "loc": { "start": { "line": 18, "column": 27 }, "end": { "line": 18, "column": 46 } } } ], "returnType": { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "E", "decorators": [], "loc": { "start": { "line": 18, "column": 50 }, "end": { "line": 18, "column": 51 } } }, "loc": { "start": { "line": 18, "column": 50 }, "end": { "line": 18, "column": 52 } } }, "loc": { "start": { "line": 18, "column": 50 }, "end": { "line": 18, "column": 52 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "PL", "decorators": [], "loc": { "start": { "line": 18, "column": 52 }, "end": { "line": 18, "column": 54 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "E", "decorators": [], "loc": { "start": { "line": 18, "column": 55 }, "end": { "line": 18, "column": 56 } } }, "loc": { "start": { "line": 18, "column": 55 }, "end": { "line": 18, "column": 57 } } }, "loc": { "start": { "line": 18, "column": 55 }, "end": { "line": 18, "column": 57 } } } ], "loc": { "start": { "line": 18, "column": 54 }, "end": { "line": 18, "column": 57 } } }, "loc": { "start": { "line": 18, "column": 52 }, "end": { "line": 18, "column": 64 } } }, "loc": { "start": { "line": 18, "column": 52 }, "end": { "line": 18, "column": 64 } } } ], "loc": { "start": { "line": 18, "column": 50 }, "end": { "line": 18, "column": 64 } } } "throwMarker": "throws", "loc": { "start": { "line": 18, "column": 26 }, "end": { "line": 18, "column": 64 } } }, { "type": "ETSUndefinedType", "loc": { "start": { "line": 18, "column": 23 }, "end": { "line": 18, "column": 24 } } } ], "loc": { "start": { "line": 18, "column": 26 }, "end": { "line": 18, "column": 64 } } }, "decorators": [], "loc": { "start": { "line": 18, "column": 13 }, "end": { "line": 18, "column": 64 } } }, "loc": { "start": { "line": 18, "column": 13 }, "end": { "line": 18, "column": 64 } } } ], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "PL", "decorators": [], "loc": { "start": { "line": 18, "column": 67 }, "end": { "line": 18, "column": 69 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 18, "column": 70 }, "end": { "line": 18, "column": 71 } } }, "loc": { "start": { "line": 18, "column": 70 }, "end": { "line": 18, "column": 72 } } }, "loc": { "start": { "line": 18, "column": 70 }, "end": { "line": 18, "column": 72 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "E", "decorators": [], "loc": { "start": { "line": 18, "column": 72 }, "end": { "line": 18, "column": 73 } } }, "loc": { "start": { "line": 18, "column": 72 }, "end": { "line": 18, "column": 74 } } }, "loc": { "start": { "line": 18, "column": 72 }, "end": { "line": 18, "column": 74 } } } ], "loc": { "start": { "line": 18, "column": 70 }, "end": { "line": 18, "column": 74 } } } ], "loc": { "start": { "line": 18, "column": 69 }, "end": { "line": 18, "column": 74 } } }, "loc": { "start": { "line": 18, "column": 67 }, "end": { "line": 18, "column": 75 } } }, "loc": { "start": { "line": 18, "column": 67 }, "end": { "line": 18, "column": 75 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 17, "column": 10 }, "end": { "line": 17, "column": 11 } } }, "loc": { "start": { "line": 17, "column": 10 }, "end": { "line": 17, "column": 12 } } }, { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "E", "decorators": [], "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 14 } } }, "default": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "never", "decorators": [], "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 22 } } }, "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 23 } } }, "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 23 } } }, "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 23 } } } ], "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 23 } } }, "declare": true, "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 18, "column": 75 } } }, "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 18, "column": 75 } } }, "overloads": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "then", "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 9 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "then", "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 9 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "onFulfilled", "typeAnnotation": { "type": "ETSUnionType", "types": [ { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "value", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 17, "column": 46 }, "end": { "line": 17, "column": 47 } } }, "loc": { "start": { "line": 17, "column": 46 }, "end": { "line": 17, "column": 48 } } }, "loc": { "start": { "line": 17, "column": 46 }, "end": { "line": 17, "column": 48 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 39 }, "end": { "line": 17, "column": 48 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "returnType": { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 17, "column": 52 }, "end": { "line": 17, "column": 53 } } }, "loc": { "start": { "line": 17, "column": 52 }, "end": { "line": 17, "column": 54 } } }, "loc": { "start": { "line": 17, "column": 52 }, "end": { "line": 17, "column": 54 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "PL", "decorators": [], "loc": { "start": { "line": 17, "column": 54 }, "end": { "line": 17, "column": 56 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 17, "column": 57 }, "end": { "line": 17, "column": 58 } } }, "loc": { "start": { "line": 17, "column": 57 }, "end": { "line": 17, "column": 59 } } }, "loc": { "start": { "line": 17, "column": 57 }, "end": { "line": 17, "column": 59 } } } ], "loc": { "start": { "line": 17, "column": 56 }, "end": { "line": 17, "column": 59 } } }, "loc": { "start": { "line": 17, "column": 54 }, "end": { "line": 17, "column": 66 } } }, "loc": { "start": { "line": 17, "column": 54 }, "end": { "line": 17, "column": 66 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } "throwMarker": "throws", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, { "type": "ETSUndefinedType", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 24 }, "end": { "line": 17, "column": 66 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "PL", "decorators": [], "loc": { "start": { "line": 18, "column": 67 }, "end": { "line": 18, "column": 69 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 18, "column": 70 }, "end": { "line": 18, "column": 71 } } }, "loc": { "start": { "line": 18, "column": 70 }, "end": { "line": 18, "column": 72 } } }, "loc": { "start": { "line": 18, "column": 70 }, "end": { "line": 18, "column": 72 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "E", "decorators": [], "loc": { "start": { "line": 18, "column": 72 }, "end": { "line": 18, "column": 73 } } }, "loc": { "start": { "line": 18, "column": 72 }, "end": { "line": 18, "column": 74 } } }, "loc": { "start": { "line": 18, "column": 72 }, "end": { "line": 18, "column": 74 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 18, "column": 69 }, "end": { "line": 18, "column": 74 } } }, "loc": { "start": { "line": 18, "column": 67 }, "end": { "line": 18, "column": 75 } } }, "loc": { "start": { "line": 18, "column": 67 }, "end": { "line": 18, "column": 75 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 17, "column": 10 }, "end": { "line": 17, "column": 11 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "E", "decorators": [], "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 14 } } }, "default": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "never", "decorators": [], "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 22 } } }, "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 23 } } }, "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 23 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 628, "column": 1 }, "end": { "line": 628, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 1, "column": 1 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "then", "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 9 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "then", "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 9 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "PL", "decorators": [], "loc": { "start": { "line": 18, "column": 67 }, "end": { "line": 18, "column": 69 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 18, "column": 70 }, "end": { "line": 18, "column": 71 } } }, "loc": { "start": { "line": 18, "column": 70 }, "end": { "line": 18, "column": 72 } } }, "loc": { "start": { "line": 18, "column": 70 }, "end": { "line": 18, "column": 72 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "E", "decorators": [], "loc": { "start": { "line": 18, "column": 72 }, "end": { "line": 18, "column": 73 } } }, "loc": { "start": { "line": 18, "column": 72 }, "end": { "line": 18, "column": 74 } } }, "loc": { "start": { "line": 18, "column": 72 }, "end": { "line": 18, "column": 74 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 18, "column": 69 }, "end": { "line": 18, "column": 74 } } }, "loc": { "start": { "line": 18, "column": 67 }, "end": { "line": 18, "column": 75 } } }, "loc": { "start": { "line": 18, "column": 67 }, "end": { "line": 18, "column": 75 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 17, "column": 10 }, "end": { "line": 17, "column": 11 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "E", "decorators": [], "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 14 } } }, "default": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "never", "decorators": [], "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 22 } } }, "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 23 } } }, "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 23 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 628, "column": 1 }, "end": { "line": 628, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 1, "column": 1 } } } ], "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 18, "column": 75 } } } ], "loc": { "start": { "line": 16, "column": 17 }, "end": { "line": 19, "column": 2 } } }, "id": { "type": "Identifier", "name": "PL", "decorators": [], "loc": { "start": { "line": 16, "column": 11 }, "end": { "line": 16, "column": 13 } } }, "extends": [], "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 16, "column": 14 }, "end": { "line": 16, "column": 15 } } }, "loc": { "start": { "line": 16, "column": 14 }, "end": { "line": 16, "column": 16 } } } ], "loc": { "start": { "line": 16, "column": 13 }, "end": { "line": 16, "column": 16 } } }, "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 21, "column": 6 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "P", "decorators": [], "loc": { "start": { "line": 21, "column": 7 }, "end": { "line": 21, "column": 8 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 10 } } }, "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 11 } } } ], "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 11 } } }, "superClass": null, "implements": [ { "type": "TSClassImplements", "expression": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "PL", "decorators": [], "loc": { "start": { "line": 21, "column": 23 }, "end": { "line": 21, "column": 25 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 21, "column": 26 }, "end": { "line": 21, "column": 27 } } }, "loc": { "start": { "line": 21, "column": 26 }, "end": { "line": 21, "column": 28 } } }, "loc": { "start": { "line": 21, "column": 26 }, "end": { "line": 21, "column": 28 } } } ], "loc": { "start": { "line": 21, "column": 25 }, "end": { "line": 21, "column": 28 } } }, "loc": { "start": { "line": 21, "column": 23 }, "end": { "line": 21, "column": 30 } } }, "loc": { "start": { "line": 21, "column": 23 }, "end": { "line": 21, "column": 30 } } }, "loc": { "start": { "line": 21, "column": 23 }, "end": { "line": 21, "column": 30 } } } ], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "then", "decorators": [], "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 9 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "then", "decorators": [], "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 9 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "onFulfilled", "typeAnnotation": { "type": "ETSUnionType", "types": [ { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "value", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 22, "column": 46 }, "end": { "line": 22, "column": 47 } } }, "loc": { "start": { "line": 22, "column": 46 }, "end": { "line": 22, "column": 48 } } }, "loc": { "start": { "line": 22, "column": 46 }, "end": { "line": 22, "column": 48 } } }, "decorators": [], "loc": { "start": { "line": 22, "column": 39 }, "end": { "line": 22, "column": 48 } } }, "loc": { "start": { "line": 22, "column": 39 }, "end": { "line": 22, "column": 48 } } } ], "returnType": { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 22, "column": 52 }, "end": { "line": 22, "column": 53 } } }, "loc": { "start": { "line": 22, "column": 52 }, "end": { "line": 22, "column": 54 } } }, "loc": { "start": { "line": 22, "column": 52 }, "end": { "line": 22, "column": 54 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "PL", "decorators": [], "loc": { "start": { "line": 22, "column": 54 }, "end": { "line": 22, "column": 56 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 22, "column": 57 }, "end": { "line": 22, "column": 58 } } }, "loc": { "start": { "line": 22, "column": 57 }, "end": { "line": 22, "column": 59 } } }, "loc": { "start": { "line": 22, "column": 57 }, "end": { "line": 22, "column": 59 } } } ], "loc": { "start": { "line": 22, "column": 56 }, "end": { "line": 22, "column": 59 } } }, "loc": { "start": { "line": 22, "column": 54 }, "end": { "line": 22, "column": 66 } } }, "loc": { "start": { "line": 22, "column": 54 }, "end": { "line": 22, "column": 66 } } } ], "loc": { "start": { "line": 22, "column": 52 }, "end": { "line": 22, "column": 66 } } } "throwMarker": "throws", "loc": { "start": { "line": 22, "column": 38 }, "end": { "line": 22, "column": 66 } } }, { "type": "ETSUndefinedType", "loc": { "start": { "line": 22, "column": 35 }, "end": { "line": 22, "column": 36 } } } ], "loc": { "start": { "line": 22, "column": 38 }, "end": { "line": 22, "column": 66 } } }, "decorators": [], "loc": { "start": { "line": 22, "column": 24 }, "end": { "line": 22, "column": 66 } } }, "loc": { "start": { "line": 22, "column": 24 }, "end": { "line": 22, "column": 66 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "onRejected", "typeAnnotation": { "type": "ETSUnionType", "types": [ { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "error", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "NullishType", "decorators": [], "loc": { "start": { "line": 23, "column": 34 }, "end": { "line": 23, "column": 45 } } }, "loc": { "start": { "line": 23, "column": 34 }, "end": { "line": 23, "column": 46 } } }, "loc": { "start": { "line": 23, "column": 34 }, "end": { "line": 23, "column": 46 } } }, "decorators": [], "loc": { "start": { "line": 23, "column": 27 }, "end": { "line": 23, "column": 46 } } }, "loc": { "start": { "line": 23, "column": 27 }, "end": { "line": 23, "column": 46 } } } ], "returnType": { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "E", "decorators": [], "loc": { "start": { "line": 23, "column": 50 }, "end": { "line": 23, "column": 51 } } }, "loc": { "start": { "line": 23, "column": 50 }, "end": { "line": 23, "column": 52 } } }, "loc": { "start": { "line": 23, "column": 50 }, "end": { "line": 23, "column": 52 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "PL", "decorators": [], "loc": { "start": { "line": 23, "column": 52 }, "end": { "line": 23, "column": 54 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "E", "decorators": [], "loc": { "start": { "line": 23, "column": 55 }, "end": { "line": 23, "column": 56 } } }, "loc": { "start": { "line": 23, "column": 55 }, "end": { "line": 23, "column": 57 } } }, "loc": { "start": { "line": 23, "column": 55 }, "end": { "line": 23, "column": 57 } } } ], "loc": { "start": { "line": 23, "column": 54 }, "end": { "line": 23, "column": 57 } } }, "loc": { "start": { "line": 23, "column": 52 }, "end": { "line": 23, "column": 64 } } }, "loc": { "start": { "line": 23, "column": 52 }, "end": { "line": 23, "column": 64 } } } ], "loc": { "start": { "line": 23, "column": 50 }, "end": { "line": 23, "column": 64 } } } "throwMarker": "throws", "loc": { "start": { "line": 23, "column": 26 }, "end": { "line": 23, "column": 64 } } }, { "type": "ETSUndefinedType", "loc": { "start": { "line": 23, "column": 23 }, "end": { "line": 23, "column": 24 } } } ], "loc": { "start": { "line": 23, "column": 26 }, "end": { "line": 23, "column": 64 } } }, "decorators": [], "loc": { "start": { "line": 23, "column": 13 }, "end": { "line": 23, "column": 64 } } }, "loc": { "start": { "line": 23, "column": 13 }, "end": { "line": 23, "column": 64 } } } ], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "PL", "decorators": [], "loc": { "start": { "line": 23, "column": 67 }, "end": { "line": 23, "column": 69 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 23, "column": 70 }, "end": { "line": 23, "column": 71 } } }, "loc": { "start": { "line": 23, "column": 70 }, "end": { "line": 23, "column": 72 } } }, "loc": { "start": { "line": 23, "column": 70 }, "end": { "line": 23, "column": 72 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "E", "decorators": [], "loc": { "start": { "line": 23, "column": 72 }, "end": { "line": 23, "column": 73 } } }, "loc": { "start": { "line": 23, "column": 72 }, "end": { "line": 23, "column": 74 } } }, "loc": { "start": { "line": 23, "column": 72 }, "end": { "line": 23, "column": 74 } } } ], "loc": { "start": { "line": 23, "column": 70 }, "end": { "line": 23, "column": 74 } } } ], "loc": { "start": { "line": 23, "column": 69 }, "end": { "line": 23, "column": 74 } } }, "loc": { "start": { "line": 23, "column": 67 }, "end": { "line": 23, "column": 76 } } }, "loc": { "start": { "line": 23, "column": 67 }, "end": { "line": 23, "column": 76 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 22, "column": 10 }, "end": { "line": 22, "column": 11 } } }, "loc": { "start": { "line": 22, "column": 10 }, "end": { "line": 22, "column": 12 } } }, { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "E", "decorators": [], "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 22, "column": 14 } } }, "default": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "never", "decorators": [], "loc": { "start": { "line": 22, "column": 17 }, "end": { "line": 22, "column": 22 } } }, "loc": { "start": { "line": 22, "column": 17 }, "end": { "line": 22, "column": 23 } } }, "loc": { "start": { "line": 22, "column": 17 }, "end": { "line": 22, "column": 23 } } }, "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 22, "column": 23 } } } ], "loc": { "start": { "line": 22, "column": 9 }, "end": { "line": 22, "column": 23 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "P", "decorators": [], "loc": { "start": { "line": 24, "column": 20 }, "end": { "line": 24, "column": 21 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 24, "column": 22 }, "end": { "line": 24, "column": 23 } } }, "loc": { "start": { "line": 24, "column": 22 }, "end": { "line": 24, "column": 24 } } }, "loc": { "start": { "line": 24, "column": 22 }, "end": { "line": 24, "column": 24 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "E", "decorators": [], "loc": { "start": { "line": 24, "column": 24 }, "end": { "line": 24, "column": 25 } } }, "loc": { "start": { "line": 24, "column": 24 }, "end": { "line": 24, "column": 26 } } }, "loc": { "start": { "line": 24, "column": 24 }, "end": { "line": 24, "column": 26 } } } ], "loc": { "start": { "line": 24, "column": 22 }, "end": { "line": 24, "column": 26 } } } ], "loc": { "start": { "line": 24, "column": 21 }, "end": { "line": 24, "column": 26 } } }, "loc": { "start": { "line": 24, "column": 20 }, "end": { "line": 24, "column": 27 } } }, "loc": { "start": { "line": 24, "column": 20 }, "end": { "line": 24, "column": 27 } } }, "arguments": [], "loc": { "start": { "line": 24, "column": 16 }, "end": { "line": 25, "column": 6 } } }, "loc": { "start": { "line": 24, "column": 9 }, "end": { "line": 25, "column": 6 } } } ], "loc": { "start": { "line": 23, "column": 75 }, "end": { "line": 25, "column": 6 } } }, "loc": { "start": { "line": 22, "column": 9 }, "end": { "line": 25, "column": 6 } } }, "loc": { "start": { "line": 22, "column": 9 }, "end": { "line": 25, "column": 6 } } }, "overloads": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "then", "decorators": [], "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 9 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "then", "decorators": [], "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 9 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "onFulfilled", "typeAnnotation": { "type": "ETSUnionType", "types": [ { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "value", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 22, "column": 46 }, "end": { "line": 22, "column": 47 } } }, "loc": { "start": { "line": 22, "column": 46 }, "end": { "line": 22, "column": 48 } } }, "loc": { "start": { "line": 22, "column": 46 }, "end": { "line": 22, "column": 48 } } }, "decorators": [], "loc": { "start": { "line": 22, "column": 39 }, "end": { "line": 22, "column": 48 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "returnType": { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 22, "column": 52 }, "end": { "line": 22, "column": 53 } } }, "loc": { "start": { "line": 22, "column": 52 }, "end": { "line": 22, "column": 54 } } }, "loc": { "start": { "line": 22, "column": 52 }, "end": { "line": 22, "column": 54 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "PL", "decorators": [], "loc": { "start": { "line": 22, "column": 54 }, "end": { "line": 22, "column": 56 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 22, "column": 57 }, "end": { "line": 22, "column": 58 } } }, "loc": { "start": { "line": 22, "column": 57 }, "end": { "line": 22, "column": 59 } } }, "loc": { "start": { "line": 22, "column": 57 }, "end": { "line": 22, "column": 59 } } } ], "loc": { "start": { "line": 22, "column": 56 }, "end": { "line": 22, "column": 59 } } }, "loc": { "start": { "line": 22, "column": 54 }, "end": { "line": 22, "column": 66 } } }, "loc": { "start": { "line": 22, "column": 54 }, "end": { "line": 22, "column": 66 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } "throwMarker": "throws", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, { "type": "ETSUndefinedType", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "decorators": [], "loc": { "start": { "line": 22, "column": 24 }, "end": { "line": 22, "column": 66 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "PL", "decorators": [], "loc": { "start": { "line": 23, "column": 67 }, "end": { "line": 23, "column": 69 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 23, "column": 70 }, "end": { "line": 23, "column": 71 } } }, "loc": { "start": { "line": 23, "column": 70 }, "end": { "line": 23, "column": 72 } } }, "loc": { "start": { "line": 23, "column": 70 }, "end": { "line": 23, "column": 72 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "E", "decorators": [], "loc": { "start": { "line": 23, "column": 72 }, "end": { "line": 23, "column": 73 } } }, "loc": { "start": { "line": 23, "column": 72 }, "end": { "line": 23, "column": 74 } } }, "loc": { "start": { "line": 23, "column": 72 }, "end": { "line": 23, "column": 74 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 23, "column": 69 }, "end": { "line": 23, "column": 74 } } }, "loc": { "start": { "line": 23, "column": 67 }, "end": { "line": 23, "column": 76 } } }, "loc": { "start": { "line": 23, "column": 67 }, "end": { "line": 23, "column": 76 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 22, "column": 10 }, "end": { "line": 22, "column": 11 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "E", "decorators": [], "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 22, "column": 14 } } }, "default": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "never", "decorators": [], "loc": { "start": { "line": 22, "column": 17 }, "end": { "line": 22, "column": 22 } } }, "loc": { "start": { "line": 22, "column": 17 }, "end": { "line": 22, "column": 23 } } }, "loc": { "start": { "line": 22, "column": 17 }, "end": { "line": 22, "column": 23 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "property": { "type": "Identifier", "name": "then", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "arguments": [ { "type": "Identifier", "name": "onFulfilled", "typeAnnotation": { "type": "ETSUnionType", "types": [ { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "value", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 22, "column": 46 }, "end": { "line": 22, "column": 47 } } }, "loc": { "start": { "line": 22, "column": 46 }, "end": { "line": 22, "column": 48 } } }, "loc": { "start": { "line": 22, "column": 46 }, "end": { "line": 22, "column": 48 } } }, "decorators": [], "loc": { "start": { "line": 22, "column": 39 }, "end": { "line": 22, "column": 48 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "returnType": { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 22, "column": 52 }, "end": { "line": 22, "column": 53 } } }, "loc": { "start": { "line": 22, "column": 52 }, "end": { "line": 22, "column": 54 } } }, "loc": { "start": { "line": 22, "column": 52 }, "end": { "line": 22, "column": 54 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "PL", "decorators": [], "loc": { "start": { "line": 22, "column": 54 }, "end": { "line": 22, "column": 56 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 22, "column": 57 }, "end": { "line": 22, "column": 58 } } }, "loc": { "start": { "line": 22, "column": 57 }, "end": { "line": 22, "column": 59 } } }, "loc": { "start": { "line": 22, "column": 57 }, "end": { "line": 22, "column": 59 } } } ], "loc": { "start": { "line": 22, "column": 56 }, "end": { "line": 22, "column": 59 } } }, "loc": { "start": { "line": 22, "column": 54 }, "end": { "line": 22, "column": 66 } } }, "loc": { "start": { "line": 22, "column": 54 }, "end": { "line": 22, "column": 66 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } "throwMarker": "throws", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, { "type": "ETSUndefinedType", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "decorators": [], "loc": { "start": { "line": 22, "column": 24 }, "end": { "line": 22, "column": 66 } } }, { "type": "UndefinedLiteral", "value": undefined, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "optional": false, "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "E", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 25, "column": 6 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 803, "column": 1 }, "end": { "line": 803, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 1, "column": 1 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "then", "decorators": [], "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 9 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "then", "decorators": [], "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 9 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "PL", "decorators": [], "loc": { "start": { "line": 23, "column": 67 }, "end": { "line": 23, "column": 69 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 23, "column": 70 }, "end": { "line": 23, "column": 71 } } }, "loc": { "start": { "line": 23, "column": 70 }, "end": { "line": 23, "column": 72 } } }, "loc": { "start": { "line": 23, "column": 70 }, "end": { "line": 23, "column": 72 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "E", "decorators": [], "loc": { "start": { "line": 23, "column": 72 }, "end": { "line": 23, "column": 73 } } }, "loc": { "start": { "line": 23, "column": 72 }, "end": { "line": 23, "column": 74 } } }, "loc": { "start": { "line": 23, "column": 72 }, "end": { "line": 23, "column": 74 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 23, "column": 69 }, "end": { "line": 23, "column": 74 } } }, "loc": { "start": { "line": 23, "column": 67 }, "end": { "line": 23, "column": 76 } } }, "loc": { "start": { "line": 23, "column": 67 }, "end": { "line": 23, "column": 76 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 22, "column": 10 }, "end": { "line": 22, "column": 11 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "E", "decorators": [], "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 22, "column": 14 } } }, "default": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "never", "decorators": [], "loc": { "start": { "line": 22, "column": 17 }, "end": { "line": 22, "column": 22 } } }, "loc": { "start": { "line": 22, "column": 17 }, "end": { "line": 22, "column": 23 } } }, "loc": { "start": { "line": 22, "column": 17 }, "end": { "line": 22, "column": 23 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "property": { "type": "Identifier", "name": "then", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "arguments": [ { "type": "UndefinedLiteral", "value": undefined, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, { "type": "UndefinedLiteral", "value": undefined, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "optional": false, "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "E", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 25, "column": 6 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 803, "column": 1 }, "end": { "line": 803, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 1, "column": 1 } } } ], "decorators": [], "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 25, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "constructor", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 26, "column": 2 }, "end": { "line": 26, "column": 2 } } } ], "loc": { "start": { "line": 21, "column": 29 }, "end": { "line": 26, "column": 2 } } }, "loc": { "start": { "line": 21, "column": 1 }, "end": { "line": 26, "column": 2 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "ETSGLOBAL", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "superClass": null, "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "_$init$_", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "_$init$_", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 27, "column": 1 } } }