{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "A", "decorators": [], "loc": { "start": { "line": 16, "column": 7 }, "end": { "line": 16, "column": 8 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "TA", "decorators": [], "loc": { "start": { "line": 16, "column": 9 }, "end": { "line": 16, "column": 11 } } }, "loc": { "start": { "line": 16, "column": 9 }, "end": { "line": 16, "column": 12 } } } ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 12 } } }, "superClass": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "B", "decorators": [], "loc": { "start": { "line": 16, "column": 21 }, "end": { "line": 16, "column": 22 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "TA", "decorators": [], "loc": { "start": { "line": 16, "column": 23 }, "end": { "line": 16, "column": 25 } } }, "loc": { "start": { "line": 16, "column": 23 }, "end": { "line": 16, "column": 26 } } }, "loc": { "start": { "line": 16, "column": 23 }, "end": { "line": 16, "column": 26 } } } ], "loc": { "start": { "line": 16, "column": 22 }, "end": { "line": 16, "column": 26 } } }, "loc": { "start": { "line": 16, "column": 21 }, "end": { "line": 16, "column": 28 } } }, "loc": { "start": { "line": 16, "column": 21 }, "end": { "line": 16, "column": 28 } } }, "implements": [], "body": [ { "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": 16, "column": 29 }, "end": { "line": 16, "column": 29 } } } ], "loc": { "start": { "line": 16, "column": 27 }, "end": { "line": 16, "column": 29 } } }, "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 16, "column": 29 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "B", "decorators": [], "loc": { "start": { "line": 18, "column": 7 }, "end": { "line": 18, "column": 8 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "TB", "decorators": [], "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 11 } } }, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 12 } } } ], "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 12 } } }, "superClass": null, "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "f", "decorators": [], "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 6 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "f", "decorators": [], "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 6 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 19, "column": 9 }, "end": { "line": 19, "column": 11 } } }, "loc": { "start": { "line": 19, "column": 6 }, "end": { "line": 19, "column": 11 } } }, "loc": { "start": { "line": 19, "column": 6 }, "end": { "line": 19, "column": 11 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 11 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "g", "decorators": [], "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 6 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "g", "decorators": [], "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 6 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "A", "decorators": [], "loc": { "start": { "line": 20, "column": 10 }, "end": { "line": 20, "column": 11 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "TB", "decorators": [], "loc": { "start": { "line": 20, "column": 12 }, "end": { "line": 20, "column": 14 } } }, "loc": { "start": { "line": 20, "column": 12 }, "end": { "line": 20, "column": 15 } } }, "loc": { "start": { "line": 20, "column": 12 }, "end": { "line": 20, "column": 15 } } } ], "loc": { "start": { "line": 20, "column": 11 }, "end": { "line": 20, "column": 15 } } }, "loc": { "start": { "line": 20, "column": 10 }, "end": { "line": 20, "column": 16 } } }, "loc": { "start": { "line": 20, "column": 10 }, "end": { "line": 20, "column": 16 } } }, "decorators": [], "loc": { "start": { "line": 20, "column": 7 }, "end": { "line": 20, "column": 16 } } }, "loc": { "start": { "line": 20, "column": 7 }, "end": { "line": 20, "column": 16 } } } ], "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 10 } } }, "property": { "type": "Identifier", "name": "f", "decorators": [], "loc": { "start": { "line": 21, "column": 11 }, "end": { "line": 21, "column": 12 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 12 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 14 } } }, "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 15 } } } ], "loc": { "start": { "line": 20, "column": 17 }, "end": { "line": 22, "column": 6 } } }, "loc": { "start": { "line": 20, "column": 6 }, "end": { "line": 22, "column": 6 } } }, "loc": { "start": { "line": 20, "column": 6 }, "end": { "line": 22, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 22, "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": 23, "column": 2 }, "end": { "line": 23, "column": 2 } } } ], "loc": { "start": { "line": 18, "column": 13 }, "end": { "line": 23, "column": 2 } } }, "loc": { "start": { "line": 18, "column": 1 }, "end": { "line": 23, "column": 2 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "M", "decorators": [], "loc": { "start": { "line": 25, "column": 7 }, "end": { "line": 25, "column": 8 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "K", "decorators": [], "loc": { "start": { "line": 25, "column": 9 }, "end": { "line": 25, "column": 10 } } }, "loc": { "start": { "line": 25, "column": 9 }, "end": { "line": 25, "column": 11 } } }, { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "V", "decorators": [], "loc": { "start": { "line": 25, "column": 12 }, "end": { "line": 25, "column": 13 } } }, "loc": { "start": { "line": 25, "column": 12 }, "end": { "line": 25, "column": 14 } } } ], "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 14 } } }, "superClass": null, "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "constructor", "accessibility": "public", "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": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "iter", "typeAnnotation": { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "ArrayLike", "decorators": [], "loc": { "start": { "line": 26, "column": 23 }, "end": { "line": 26, "column": 32 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTuple", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "K", "decorators": [], "loc": { "start": { "line": 26, "column": 34 }, "end": { "line": 26, "column": 35 } } }, "loc": { "start": { "line": 26, "column": 34 }, "end": { "line": 26, "column": 36 } } }, "loc": { "start": { "line": 26, "column": 34 }, "end": { "line": 26, "column": 36 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "V", "decorators": [], "loc": { "start": { "line": 26, "column": 37 }, "end": { "line": 26, "column": 38 } } }, "loc": { "start": { "line": 26, "column": 37 }, "end": { "line": 26, "column": 39 } } }, "loc": { "start": { "line": 26, "column": 37 }, "end": { "line": 26, "column": 39 } } } ], "spreadType": null, "loc": { "start": { "line": 26, "column": 33 }, "end": { "line": 26, "column": 40 } } } ], "loc": { "start": { "line": 26, "column": 32 }, "end": { "line": 26, "column": 40 } } }, "loc": { "start": { "line": 26, "column": 23 }, "end": { "line": 26, "column": 42 } } }, "loc": { "start": { "line": 26, "column": 23 }, "end": { "line": 26, "column": 42 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Iterable", "decorators": [], "loc": { "start": { "line": 26, "column": 43 }, "end": { "line": 26, "column": 51 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTuple", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "K", "decorators": [], "loc": { "start": { "line": 26, "column": 53 }, "end": { "line": 26, "column": 54 } } }, "loc": { "start": { "line": 26, "column": 53 }, "end": { "line": 26, "column": 55 } } }, "loc": { "start": { "line": 26, "column": 53 }, "end": { "line": 26, "column": 55 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "V", "decorators": [], "loc": { "start": { "line": 26, "column": 56 }, "end": { "line": 26, "column": 57 } } }, "loc": { "start": { "line": 26, "column": 56 }, "end": { "line": 26, "column": 58 } } }, "loc": { "start": { "line": 26, "column": 56 }, "end": { "line": 26, "column": 58 } } } ], "spreadType": null, "loc": { "start": { "line": 26, "column": 52 }, "end": { "line": 26, "column": 59 } } } ], "loc": { "start": { "line": 26, "column": 51 }, "end": { "line": 26, "column": 59 } } }, "loc": { "start": { "line": 26, "column": 43 }, "end": { "line": 26, "column": 60 } } }, "loc": { "start": { "line": 26, "column": 43 }, "end": { "line": 26, "column": 60 } } } ], "loc": { "start": { "line": 26, "column": 23 }, "end": { "line": 26, "column": 60 } } }, "decorators": [], "loc": { "start": { "line": 26, "column": 17 }, "end": { "line": 26, "column": 60 } } }, "loc": { "start": { "line": 26, "column": 17 }, "end": { "line": 26, "column": 60 } } } ], "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "Array", "decorators": [], "loc": { "start": { "line": 27, "column": 9 }, "end": { "line": 27, "column": 14 } } }, "property": { "type": "Identifier", "name": "from", "decorators": [], "loc": { "start": { "line": 27, "column": 15 }, "end": { "line": 27, "column": 19 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 27, "column": 9 }, "end": { "line": 27, "column": 19 } } }, "arguments": [ { "type": "Identifier", "name": "iter", "decorators": [], "loc": { "start": { "line": 27, "column": 28 }, "end": { "line": 27, "column": 32 } } } ], "optional": false, "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTuple", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "K", "decorators": [], "loc": { "start": { "line": 27, "column": 21 }, "end": { "line": 27, "column": 22 } } }, "loc": { "start": { "line": 27, "column": 21 }, "end": { "line": 27, "column": 23 } } }, "loc": { "start": { "line": 27, "column": 21 }, "end": { "line": 27, "column": 23 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "V", "decorators": [], "loc": { "start": { "line": 27, "column": 24 }, "end": { "line": 27, "column": 25 } } }, "loc": { "start": { "line": 27, "column": 24 }, "end": { "line": 27, "column": 26 } } }, "loc": { "start": { "line": 27, "column": 24 }, "end": { "line": 27, "column": 26 } } } ], "spreadType": null, "loc": { "start": { "line": 27, "column": 20 }, "end": { "line": 27, "column": 27 } } } ], "loc": { "start": { "line": 27, "column": 19 }, "end": { "line": 27, "column": 27 } } }, "loc": { "start": { "line": 27, "column": 9 }, "end": { "line": 27, "column": 33 } } }, "loc": { "start": { "line": 27, "column": 9 }, "end": { "line": 27, "column": 34 } } } ], "loc": { "start": { "line": 26, "column": 61 }, "end": { "line": 28, "column": 6 } } }, "loc": { "start": { "line": 26, "column": 16 }, "end": { "line": 28, "column": 6 } } }, "loc": { "start": { "line": 26, "column": 16 }, "end": { "line": 28, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 26, "column": 5 }, "end": { "line": 28, "column": 6 } } } ], "loc": { "start": { "line": 25, "column": 15 }, "end": { "line": 29, "column": 2 } } }, "loc": { "start": { "line": 25, "column": 1 }, "end": { "line": 29, "column": 2 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "C", "decorators": [], "loc": { "start": { "line": 31, "column": 7 }, "end": { "line": 31, "column": 8 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 31, "column": 9 }, "end": { "line": 31, "column": 10 } } }, "loc": { "start": { "line": 31, "column": 9 }, "end": { "line": 31, "column": 11 } } } ], "loc": { "start": { "line": 31, "column": 8 }, "end": { "line": 31, "column": 11 } } }, "superClass": null, "implements": [], "body": [ { "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": 31, "column": 14 }, "end": { "line": 31, "column": 14 } } } ], "loc": { "start": { "line": 31, "column": 12 }, "end": { "line": 31, "column": 14 } } }, "loc": { "start": { "line": 31, "column": 1 }, "end": { "line": 31, "column": 14 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "M1", "decorators": [], "loc": { "start": { "line": 37, "column": 7 }, "end": { "line": 37, "column": 9 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "K", "decorators": [], "loc": { "start": { "line": 37, "column": 10 }, "end": { "line": 37, "column": 11 } } }, "loc": { "start": { "line": 37, "column": 10 }, "end": { "line": 37, "column": 12 } } }, { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "V", "decorators": [], "loc": { "start": { "line": 37, "column": 13 }, "end": { "line": 37, "column": 14 } } }, "loc": { "start": { "line": 37, "column": 13 }, "end": { "line": 37, "column": 15 } } } ], "loc": { "start": { "line": 37, "column": 9 }, "end": { "line": 37, "column": 15 } } }, "superClass": null, "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "it", "decorators": [], "loc": { "start": { "line": 38, "column": 5 }, "end": { "line": 38, "column": 7 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "it", "decorators": [], "loc": { "start": { "line": 38, "column": 5 }, "end": { "line": 38, "column": 7 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "C", "decorators": [], "loc": { "start": { "line": 38, "column": 11 }, "end": { "line": 38, "column": 12 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTuple", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "K", "decorators": [], "loc": { "start": { "line": 38, "column": 14 }, "end": { "line": 38, "column": 15 } } }, "loc": { "start": { "line": 38, "column": 14 }, "end": { "line": 38, "column": 16 } } }, "loc": { "start": { "line": 38, "column": 14 }, "end": { "line": 38, "column": 16 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "V", "decorators": [], "loc": { "start": { "line": 38, "column": 17 }, "end": { "line": 38, "column": 18 } } }, "loc": { "start": { "line": 38, "column": 17 }, "end": { "line": 38, "column": 19 } } }, "loc": { "start": { "line": 38, "column": 17 }, "end": { "line": 38, "column": 19 } } } ], "spreadType": null, "loc": { "start": { "line": 38, "column": 13 }, "end": { "line": 38, "column": 20 } } } ], "loc": { "start": { "line": 38, "column": 12 }, "end": { "line": 38, "column": 20 } } }, "loc": { "start": { "line": 38, "column": 11 }, "end": { "line": 38, "column": 22 } } }, "loc": { "start": { "line": 38, "column": 11 }, "end": { "line": 38, "column": 22 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 39, "column": 16 }, "end": { "line": 39, "column": 20 } } }, "property": { "type": "Identifier", "name": "bar", "decorators": [], "loc": { "start": { "line": 39, "column": 21 }, "end": { "line": 39, "column": 24 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 39, "column": 16 }, "end": { "line": 39, "column": 24 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 39, "column": 16 }, "end": { "line": 39, "column": 26 } } }, "loc": { "start": { "line": 39, "column": 9 }, "end": { "line": 39, "column": 27 } } } ], "loc": { "start": { "line": 38, "column": 21 }, "end": { "line": 40, "column": 6 } } }, "loc": { "start": { "line": 38, "column": 7 }, "end": { "line": 40, "column": 6 } } }, "loc": { "start": { "line": 38, "column": 7 }, "end": { "line": 40, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 38, "column": 5 }, "end": { "line": 40, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "bar", "decorators": [], "loc": { "start": { "line": 41, "column": 5 }, "end": { "line": 41, "column": 8 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "bar", "decorators": [], "loc": { "start": { "line": 41, "column": 5 }, "end": { "line": 41, "column": 8 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "C", "decorators": [], "loc": { "start": { "line": 41, "column": 12 }, "end": { "line": 41, "column": 13 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTuple", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "K", "decorators": [], "loc": { "start": { "line": 41, "column": 15 }, "end": { "line": 41, "column": 16 } } }, "loc": { "start": { "line": 41, "column": 15 }, "end": { "line": 41, "column": 17 } } }, "loc": { "start": { "line": 41, "column": 15 }, "end": { "line": 41, "column": 17 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "V", "decorators": [], "loc": { "start": { "line": 41, "column": 18 }, "end": { "line": 41, "column": 19 } } }, "loc": { "start": { "line": 41, "column": 18 }, "end": { "line": 41, "column": 20 } } }, "loc": { "start": { "line": 41, "column": 18 }, "end": { "line": 41, "column": 20 } } } ], "spreadType": null, "loc": { "start": { "line": 41, "column": 14 }, "end": { "line": 41, "column": 21 } } } ], "loc": { "start": { "line": 41, "column": 13 }, "end": { "line": 41, "column": 21 } } }, "loc": { "start": { "line": 41, "column": 12 }, "end": { "line": 41, "column": 23 } } }, "loc": { "start": { "line": 41, "column": 12 }, "end": { "line": 41, "column": 23 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "mp", "decorators": [], "loc": { "start": { "line": 42, "column": 16 }, "end": { "line": 42, "column": 18 } } }, "arguments": [], "optional": false, "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTuple", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "K", "decorators": [], "loc": { "start": { "line": 42, "column": 20 }, "end": { "line": 42, "column": 21 } } }, "loc": { "start": { "line": 42, "column": 20 }, "end": { "line": 42, "column": 22 } } }, "loc": { "start": { "line": 42, "column": 20 }, "end": { "line": 42, "column": 22 } } }, { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "V", "decorators": [], "loc": { "start": { "line": 42, "column": 23 }, "end": { "line": 42, "column": 24 } } }, "loc": { "start": { "line": 42, "column": 23 }, "end": { "line": 42, "column": 25 } } }, "loc": { "start": { "line": 42, "column": 23 }, "end": { "line": 42, "column": 25 } } } ], "spreadType": null, "loc": { "start": { "line": 42, "column": 19 }, "end": { "line": 42, "column": 26 } } } ], "loc": { "start": { "line": 42, "column": 18 }, "end": { "line": 42, "column": 26 } } }, "loc": { "start": { "line": 42, "column": 16 }, "end": { "line": 42, "column": 28 } } }, "loc": { "start": { "line": 42, "column": 9 }, "end": { "line": 42, "column": 29 } } } ], "loc": { "start": { "line": 41, "column": 22 }, "end": { "line": 43, "column": 6 } } }, "loc": { "start": { "line": 41, "column": 8 }, "end": { "line": 43, "column": 6 } } }, "loc": { "start": { "line": 41, "column": 8 }, "end": { "line": 43, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 41, "column": 5 }, "end": { "line": 43, "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": 44, "column": 2 }, "end": { "line": 44, "column": 2 } } } ], "loc": { "start": { "line": 37, "column": 16 }, "end": { "line": 44, "column": 2 } } }, "loc": { "start": { "line": 37, "column": 1 }, "end": { "line": 44, "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 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "mp", "decorators": [], "loc": { "start": { "line": 33, "column": 10 }, "end": { "line": 33, "column": 12 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "mp", "decorators": [], "loc": { "start": { "line": 33, "column": 10 }, "end": { "line": 33, "column": 12 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "C", "decorators": [], "loc": { "start": { "line": 33, "column": 19 }, "end": { "line": 33, "column": 20 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 33, "column": 21 }, "end": { "line": 33, "column": 22 } } }, "loc": { "start": { "line": 33, "column": 21 }, "end": { "line": 33, "column": 23 } } }, "loc": { "start": { "line": 33, "column": 21 }, "end": { "line": 33, "column": 23 } } } ], "loc": { "start": { "line": 33, "column": 20 }, "end": { "line": 33, "column": 23 } } }, "loc": { "start": { "line": 33, "column": 19 }, "end": { "line": 33, "column": 25 } } }, "loc": { "start": { "line": 33, "column": 19 }, "end": { "line": 33, "column": 25 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 33, "column": 13 }, "end": { "line": 33, "column": 14 } } }, "loc": { "start": { "line": 33, "column": 13 }, "end": { "line": 33, "column": 15 } } } ], "loc": { "start": { "line": 33, "column": 12 }, "end": { "line": 33, "column": 15 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "C", "decorators": [], "loc": { "start": { "line": 34, "column": 16 }, "end": { "line": 34, "column": 17 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 34, "column": 18 }, "end": { "line": 34, "column": 19 } } }, "loc": { "start": { "line": 34, "column": 18 }, "end": { "line": 34, "column": 20 } } }, "loc": { "start": { "line": 34, "column": 18 }, "end": { "line": 34, "column": 20 } } } ], "loc": { "start": { "line": 34, "column": 17 }, "end": { "line": 34, "column": 20 } } }, "loc": { "start": { "line": 34, "column": 16 }, "end": { "line": 34, "column": 21 } } }, "loc": { "start": { "line": 34, "column": 16 }, "end": { "line": 34, "column": 21 } } }, "arguments": [], "loc": { "start": { "line": 34, "column": 12 }, "end": { "line": 34, "column": 23 } } }, "loc": { "start": { "line": 34, "column": 5 }, "end": { "line": 34, "column": 23 } } } ], "loc": { "start": { "line": 33, "column": 24 }, "end": { "line": 35, "column": 2 } } }, "loc": { "start": { "line": 33, "column": 12 }, "end": { "line": 35, "column": 2 } } }, "loc": { "start": { "line": 33, "column": 12 }, "end": { "line": 35, "column": 2 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 33, "column": 1 }, "end": { "line": 35, "column": 2 } } } ], "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": 45, "column": 1 } } }