{ "type": "Program", "statements": [ { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "pushFront", "decorators": [], "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 14 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "pushFront", "decorators": [], "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 14 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "e", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 20, "column": 18 }, "end": { "line": 20, "column": 19 } } }, "loc": { "start": { "line": 20, "column": 18 }, "end": { "line": 20, "column": 20 } } }, "loc": { "start": { "line": 20, "column": 18 }, "end": { "line": 20, "column": 20 } } }, "decorators": [], "loc": { "start": { "line": 20, "column": 15 }, "end": { "line": 20, "column": 20 } } }, "loc": { "start": { "line": 20, "column": 15 }, "end": { "line": 20, "column": 20 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 20, "column": 22 }, "end": { "line": 20, "column": 26 } } }, "declare": true, "loc": { "start": { "line": 20, "column": 14 }, "end": { "line": 20, "column": 26 } } }, "loc": { "start": { "line": 20, "column": 14 }, "end": { "line": 20, "column": 26 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 27 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "popFront", "decorators": [], "loc": { "start": { "line": 21, "column": 5 }, "end": { "line": 21, "column": 13 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "popFront", "decorators": [], "loc": { "start": { "line": 21, "column": 5 }, "end": { "line": 21, "column": 13 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 21, "column": 17 }, "end": { "line": 21, "column": 18 } } }, "loc": { "start": { "line": 21, "column": 17 }, "end": { "line": 21, "column": 19 } } }, "loc": { "start": { "line": 21, "column": 17 }, "end": { "line": 21, "column": 19 } } }, "declare": true, "loc": { "start": { "line": 21, "column": 13 }, "end": { "line": 21, "column": 19 } } }, "loc": { "start": { "line": 21, "column": 13 }, "end": { "line": 21, "column": 19 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 21, "column": 5 }, "end": { "line": 21, "column": 19 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "pushBack", "decorators": [], "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 13 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "pushBack", "decorators": [], "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 13 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "e", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 22, "column": 17 }, "end": { "line": 22, "column": 18 } } }, "loc": { "start": { "line": 22, "column": 17 }, "end": { "line": 22, "column": 19 } } }, "loc": { "start": { "line": 22, "column": 17 }, "end": { "line": 22, "column": 19 } } }, "decorators": [], "loc": { "start": { "line": 22, "column": 14 }, "end": { "line": 22, "column": 19 } } }, "loc": { "start": { "line": 22, "column": 14 }, "end": { "line": 22, "column": 19 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 22, "column": 21 }, "end": { "line": 22, "column": 25 } } }, "declare": true, "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 22, "column": 25 } } }, "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 22, "column": 25 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 26 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "popBack", "decorators": [], "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 23, "column": 12 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "popBack", "decorators": [], "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 23, "column": 12 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 23, "column": 16 }, "end": { "line": 23, "column": 17 } } }, "loc": { "start": { "line": 23, "column": 16 }, "end": { "line": 23, "column": 18 } } }, "loc": { "start": { "line": 23, "column": 16 }, "end": { "line": 23, "column": 18 } } }, "declare": true, "loc": { "start": { "line": 23, "column": 12 }, "end": { "line": 23, "column": 18 } } }, "loc": { "start": { "line": 23, "column": 12 }, "end": { "line": 23, "column": 18 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 23, "column": 18 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "size", "decorators": [], "loc": { "start": { "line": 25, "column": 5 }, "end": { "line": 25, "column": 9 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "size", "decorators": [], "loc": { "start": { "line": 25, "column": 5 }, "end": { "line": 25, "column": 9 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 25, "column": 13 }, "end": { "line": 25, "column": 16 } } }, "declare": true, "loc": { "start": { "line": 25, "column": 9 }, "end": { "line": 25, "column": 16 } } }, "loc": { "start": { "line": 25, "column": 9 }, "end": { "line": 25, "column": 16 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 25, "column": 5 }, "end": { "line": 25, "column": 17 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "at", "decorators": [], "loc": { "start": { "line": 26, "column": 5 }, "end": { "line": 26, "column": 7 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "at", "decorators": [], "loc": { "start": { "line": 26, "column": 5 }, "end": { "line": 26, "column": 7 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "index", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 26, "column": 15 }, "end": { "line": 26, "column": 18 } } }, "decorators": [], "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 18 } } }, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 18 } } } ], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 26, "column": 21 }, "end": { "line": 26, "column": 22 } } }, "loc": { "start": { "line": 26, "column": 21 }, "end": { "line": 26, "column": 23 } } }, "loc": { "start": { "line": 26, "column": 21 }, "end": { "line": 26, "column": 23 } } }, "declare": true, "loc": { "start": { "line": 26, "column": 7 }, "end": { "line": 26, "column": 23 } } }, "loc": { "start": { "line": 26, "column": 7 }, "end": { "line": 26, "column": 23 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 26, "column": 5 }, "end": { "line": 26, "column": 23 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "has", "decorators": [], "loc": { "start": { "line": 27, "column": 5 }, "end": { "line": 27, "column": 8 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "has", "decorators": [], "loc": { "start": { "line": 27, "column": 5 }, "end": { "line": 27, "column": 8 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "e", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 27, "column": 12 }, "end": { "line": 27, "column": 13 } } }, "loc": { "start": { "line": 27, "column": 12 }, "end": { "line": 27, "column": 14 } } }, "loc": { "start": { "line": 27, "column": 12 }, "end": { "line": 27, "column": 14 } } }, "decorators": [], "loc": { "start": { "line": 27, "column": 9 }, "end": { "line": 27, "column": 14 } } }, "loc": { "start": { "line": 27, "column": 9 }, "end": { "line": 27, "column": 14 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 27, "column": 16 }, "end": { "line": 27, "column": 23 } } }, "declare": true, "loc": { "start": { "line": 27, "column": 8 }, "end": { "line": 27, "column": 23 } } }, "loc": { "start": { "line": 27, "column": 8 }, "end": { "line": 27, "column": 23 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 27, "column": 5 }, "end": { "line": 27, "column": 24 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "forEach", "decorators": [], "loc": { "start": { "line": 29, "column": 5 }, "end": { "line": 29, "column": 12 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "forEach", "decorators": [], "loc": { "start": { "line": 29, "column": 5 }, "end": { "line": 29, "column": 12 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "fn", "typeAnnotation": { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "e", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 29, "column": 21 }, "end": { "line": 29, "column": 22 } } }, "loc": { "start": { "line": 29, "column": 21 }, "end": { "line": 29, "column": 23 } } }, "loc": { "start": { "line": 29, "column": 21 }, "end": { "line": 29, "column": 23 } } }, "decorators": [], "loc": { "start": { "line": 29, "column": 18 }, "end": { "line": 29, "column": 23 } } }, "loc": { "start": { "line": 29, "column": 18 }, "end": { "line": 29, "column": 23 } } } ], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 29, "column": 27 }, "end": { "line": 29, "column": 28 } } }, "loc": { "start": { "line": 29, "column": 27 }, "end": { "line": 29, "column": 29 } } }, "loc": { "start": { "line": 29, "column": 27 }, "end": { "line": 29, "column": 29 } } }, "loc": { "start": { "line": 29, "column": 17 }, "end": { "line": 29, "column": 29 } } }, "decorators": [], "loc": { "start": { "line": 29, "column": 13 }, "end": { "line": 29, "column": 29 } } }, "loc": { "start": { "line": 29, "column": 13 }, "end": { "line": 29, "column": 29 } } } ], "returnType": { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Listt", "decorators": [], "loc": { "start": { "line": 29, "column": 31 }, "end": { "line": 29, "column": 36 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 29, "column": 37 }, "end": { "line": 29, "column": 38 } } }, "loc": { "start": { "line": 29, "column": 37 }, "end": { "line": 29, "column": 39 } } }, "loc": { "start": { "line": 29, "column": 37 }, "end": { "line": 29, "column": 39 } } } ], "loc": { "start": { "line": 29, "column": 36 }, "end": { "line": 29, "column": 39 } } }, "loc": { "start": { "line": 29, "column": 31 }, "end": { "line": 29, "column": 41 } } }, "loc": { "start": { "line": 29, "column": 31 }, "end": { "line": 29, "column": 41 } } }, { "type": "ETSNullType", "loc": { "start": { "line": 29, "column": 42 }, "end": { "line": 29, "column": 46 } } } ], "loc": { "start": { "line": 29, "column": 31 }, "end": { "line": 29, "column": 46 } } }, "declare": true, "loc": { "start": { "line": 29, "column": 12 }, "end": { "line": 29, "column": 46 } } }, "loc": { "start": { "line": 29, "column": 12 }, "end": { "line": 29, "column": 46 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 29, "column": 5 }, "end": { "line": 29, "column": 47 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "map", "decorators": [], "loc": { "start": { "line": 30, "column": 5 }, "end": { "line": 30, "column": 8 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "map", "decorators": [], "loc": { "start": { "line": 30, "column": 5 }, "end": { "line": 30, "column": 8 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "fn", "typeAnnotation": { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "e", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 30, "column": 20 }, "end": { "line": 30, "column": 21 } } }, "loc": { "start": { "line": 30, "column": 20 }, "end": { "line": 30, "column": 22 } } }, "loc": { "start": { "line": 30, "column": 20 }, "end": { "line": 30, "column": 22 } } }, "decorators": [], "loc": { "start": { "line": 30, "column": 17 }, "end": { "line": 30, "column": 22 } } }, "loc": { "start": { "line": 30, "column": 17 }, "end": { "line": 30, "column": 22 } } } ], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 30, "column": 26 }, "end": { "line": 30, "column": 27 } } }, "loc": { "start": { "line": 30, "column": 26 }, "end": { "line": 30, "column": 28 } } }, "loc": { "start": { "line": 30, "column": 26 }, "end": { "line": 30, "column": 28 } } }, "loc": { "start": { "line": 30, "column": 16 }, "end": { "line": 30, "column": 28 } } }, "decorators": [], "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 28 } } }, "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 28 } } } ], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Listt", "decorators": [], "loc": { "start": { "line": 30, "column": 30 }, "end": { "line": 30, "column": 35 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 30, "column": 36 }, "end": { "line": 30, "column": 37 } } }, "loc": { "start": { "line": 30, "column": 36 }, "end": { "line": 30, "column": 38 } } }, "loc": { "start": { "line": 30, "column": 36 }, "end": { "line": 30, "column": 38 } } } ], "loc": { "start": { "line": 30, "column": 35 }, "end": { "line": 30, "column": 38 } } }, "loc": { "start": { "line": 30, "column": 30 }, "end": { "line": 30, "column": 39 } } }, "loc": { "start": { "line": 30, "column": 30 }, "end": { "line": 30, "column": 39 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 30, "column": 9 }, "end": { "line": 30, "column": 10 } } }, "loc": { "start": { "line": 30, "column": 9 }, "end": { "line": 30, "column": 11 } } } ], "loc": { "start": { "line": 30, "column": 8 }, "end": { "line": 30, "column": 11 } } }, "declare": true, "loc": { "start": { "line": 30, "column": 8 }, "end": { "line": 30, "column": 39 } } }, "loc": { "start": { "line": 30, "column": 8 }, "end": { "line": 30, "column": 39 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 30, "column": 5 }, "end": { "line": 30, "column": 39 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "fold", "decorators": [], "loc": { "start": { "line": 31, "column": 5 }, "end": { "line": 31, "column": 9 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "fold", "decorators": [], "loc": { "start": { "line": 31, "column": 5 }, "end": { "line": 31, "column": 9 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "combine", "typeAnnotation": { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "lhs", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 31, "column": 25 }, "end": { "line": 31, "column": 26 } } }, "loc": { "start": { "line": 31, "column": 25 }, "end": { "line": 31, "column": 27 } } }, "loc": { "start": { "line": 31, "column": 25 }, "end": { "line": 31, "column": 27 } } }, "decorators": [], "loc": { "start": { "line": 31, "column": 20 }, "end": { "line": 31, "column": 27 } } }, "loc": { "start": { "line": 31, "column": 20 }, "end": { "line": 31, "column": 27 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "rhs", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 31, "column": 33 }, "end": { "line": 31, "column": 34 } } }, "loc": { "start": { "line": 31, "column": 33 }, "end": { "line": 31, "column": 35 } } }, "loc": { "start": { "line": 31, "column": 33 }, "end": { "line": 31, "column": 35 } } }, "decorators": [], "loc": { "start": { "line": 31, "column": 28 }, "end": { "line": 31, "column": 35 } } }, "loc": { "start": { "line": 31, "column": 28 }, "end": { "line": 31, "column": 35 } } } ], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 31, "column": 39 }, "end": { "line": 31, "column": 40 } } }, "loc": { "start": { "line": 31, "column": 39 }, "end": { "line": 31, "column": 41 } } }, "loc": { "start": { "line": 31, "column": 39 }, "end": { "line": 31, "column": 41 } } }, "loc": { "start": { "line": 31, "column": 19 }, "end": { "line": 31, "column": 41 } } }, "decorators": [], "loc": { "start": { "line": 31, "column": 10 }, "end": { "line": 31, "column": 41 } } }, "loc": { "start": { "line": 31, "column": 10 }, "end": { "line": 31, "column": 41 } } } ], "returnType": { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 31, "column": 43 }, "end": { "line": 31, "column": 44 } } }, "loc": { "start": { "line": 31, "column": 43 }, "end": { "line": 31, "column": 46 } } }, "loc": { "start": { "line": 31, "column": 43 }, "end": { "line": 31, "column": 46 } } }, { "type": "ETSNullType", "loc": { "start": { "line": 31, "column": 47 }, "end": { "line": 31, "column": 51 } } } ], "loc": { "start": { "line": 31, "column": 43 }, "end": { "line": 31, "column": 51 } } }, "declare": true, "loc": { "start": { "line": 31, "column": 9 }, "end": { "line": 31, "column": 51 } } }, "loc": { "start": { "line": 31, "column": 9 }, "end": { "line": 31, "column": 51 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 31, "column": 5 }, "end": { "line": 31, "column": 52 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "foldWith", "decorators": [], "loc": { "start": { "line": 32, "column": 5 }, "end": { "line": 32, "column": 13 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "foldWith", "decorators": [], "loc": { "start": { "line": 32, "column": 5 }, "end": { "line": 32, "column": 13 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "combine", "typeAnnotation": { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "lhs", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 32, "column": 32 }, "end": { "line": 32, "column": 33 } } }, "loc": { "start": { "line": 32, "column": 32 }, "end": { "line": 32, "column": 34 } } }, "loc": { "start": { "line": 32, "column": 32 }, "end": { "line": 32, "column": 34 } } }, "decorators": [], "loc": { "start": { "line": 32, "column": 27 }, "end": { "line": 32, "column": 34 } } }, "loc": { "start": { "line": 32, "column": 27 }, "end": { "line": 32, "column": 34 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "rhs", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 32, "column": 40 }, "end": { "line": 32, "column": 41 } } }, "loc": { "start": { "line": 32, "column": 40 }, "end": { "line": 32, "column": 42 } } }, "loc": { "start": { "line": 32, "column": 40 }, "end": { "line": 32, "column": 42 } } }, "decorators": [], "loc": { "start": { "line": 32, "column": 35 }, "end": { "line": 32, "column": 42 } } }, "loc": { "start": { "line": 32, "column": 35 }, "end": { "line": 32, "column": 42 } } } ], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 32, "column": 46 }, "end": { "line": 32, "column": 47 } } }, "loc": { "start": { "line": 32, "column": 46 }, "end": { "line": 32, "column": 48 } } }, "loc": { "start": { "line": 32, "column": 46 }, "end": { "line": 32, "column": 48 } } }, "loc": { "start": { "line": 32, "column": 26 }, "end": { "line": 32, "column": 48 } } }, "decorators": [], "loc": { "start": { "line": 32, "column": 17 }, "end": { "line": 32, "column": 48 } } }, "loc": { "start": { "line": 32, "column": 17 }, "end": { "line": 32, "column": 48 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "initVal", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 32, "column": 58 }, "end": { "line": 32, "column": 59 } } }, "loc": { "start": { "line": 32, "column": 58 }, "end": { "line": 32, "column": 60 } } }, "loc": { "start": { "line": 32, "column": 58 }, "end": { "line": 32, "column": 60 } } }, "decorators": [], "loc": { "start": { "line": 32, "column": 49 }, "end": { "line": 32, "column": 60 } } }, "loc": { "start": { "line": 32, "column": 49 }, "end": { "line": 32, "column": 60 } } } ], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 32, "column": 62 }, "end": { "line": 32, "column": 63 } } }, "loc": { "start": { "line": 32, "column": 62 }, "end": { "line": 32, "column": 64 } } }, "loc": { "start": { "line": 32, "column": 62 }, "end": { "line": 32, "column": 64 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 32, "column": 14 }, "end": { "line": 32, "column": 15 } } }, "loc": { "start": { "line": 32, "column": 14 }, "end": { "line": 32, "column": 16 } } } ], "loc": { "start": { "line": 32, "column": 13 }, "end": { "line": 32, "column": 16 } } }, "declare": true, "loc": { "start": { "line": 32, "column": 13 }, "end": { "line": 32, "column": 64 } } }, "loc": { "start": { "line": 32, "column": 13 }, "end": { "line": 32, "column": 64 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 32, "column": 5 }, "end": { "line": 32, "column": 64 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "filter", "decorators": [], "loc": { "start": { "line": 33, "column": 5 }, "end": { "line": 33, "column": 11 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "filter", "decorators": [], "loc": { "start": { "line": 33, "column": 5 }, "end": { "line": 33, "column": 11 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "filterCond", "typeAnnotation": { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "e", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 33, "column": 28 }, "end": { "line": 33, "column": 29 } } }, "loc": { "start": { "line": 33, "column": 28 }, "end": { "line": 33, "column": 30 } } }, "loc": { "start": { "line": 33, "column": 28 }, "end": { "line": 33, "column": 30 } } }, "decorators": [], "loc": { "start": { "line": 33, "column": 25 }, "end": { "line": 33, "column": 30 } } }, "loc": { "start": { "line": 33, "column": 25 }, "end": { "line": 33, "column": 30 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 33, "column": 34 }, "end": { "line": 33, "column": 41 } } }, "loc": { "start": { "line": 33, "column": 24 }, "end": { "line": 33, "column": 41 } } }, "decorators": [], "loc": { "start": { "line": 33, "column": 12 }, "end": { "line": 33, "column": 41 } } }, "loc": { "start": { "line": 33, "column": 12 }, "end": { "line": 33, "column": 41 } } } ], "returnType": { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Listt", "decorators": [], "loc": { "start": { "line": 33, "column": 45 }, "end": { "line": 33, "column": 50 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 33, "column": 51 }, "end": { "line": 33, "column": 52 } } }, "loc": { "start": { "line": 33, "column": 51 }, "end": { "line": 33, "column": 53 } } }, "loc": { "start": { "line": 33, "column": 51 }, "end": { "line": 33, "column": 53 } } } ], "loc": { "start": { "line": 33, "column": 50 }, "end": { "line": 33, "column": 53 } } }, "loc": { "start": { "line": 33, "column": 45 }, "end": { "line": 33, "column": 55 } } }, "loc": { "start": { "line": 33, "column": 45 }, "end": { "line": 33, "column": 55 } } }, { "type": "ETSNullType", "loc": { "start": { "line": 33, "column": 56 }, "end": { "line": 33, "column": 60 } } } ], "loc": { "start": { "line": 33, "column": 45 }, "end": { "line": 33, "column": 60 } } }, "declare": true, "loc": { "start": { "line": 33, "column": 11 }, "end": { "line": 33, "column": 60 } } }, "loc": { "start": { "line": 33, "column": 11 }, "end": { "line": 33, "column": 60 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 33, "column": 5 }, "end": { "line": 33, "column": 61 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "sort", "decorators": [], "loc": { "start": { "line": 34, "column": 5 }, "end": { "line": 34, "column": 9 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "sort", "decorators": [], "loc": { "start": { "line": 34, "column": 5 }, "end": { "line": 34, "column": 9 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "comparator", "typeAnnotation": { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "lhs", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 34, "column": 28 }, "end": { "line": 34, "column": 29 } } }, "loc": { "start": { "line": 34, "column": 28 }, "end": { "line": 34, "column": 30 } } }, "loc": { "start": { "line": 34, "column": 28 }, "end": { "line": 34, "column": 30 } } }, "decorators": [], "loc": { "start": { "line": 34, "column": 23 }, "end": { "line": 34, "column": 30 } } }, "loc": { "start": { "line": 34, "column": 23 }, "end": { "line": 34, "column": 30 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "rhs", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 34, "column": 36 }, "end": { "line": 34, "column": 37 } } }, "loc": { "start": { "line": 34, "column": 36 }, "end": { "line": 34, "column": 38 } } }, "loc": { "start": { "line": 34, "column": 36 }, "end": { "line": 34, "column": 38 } } }, "decorators": [], "loc": { "start": { "line": 34, "column": 31 }, "end": { "line": 34, "column": 38 } } }, "loc": { "start": { "line": 34, "column": 31 }, "end": { "line": 34, "column": 38 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 34, "column": 42 }, "end": { "line": 34, "column": 49 } } }, "loc": { "start": { "line": 34, "column": 22 }, "end": { "line": 34, "column": 49 } } }, "decorators": [], "loc": { "start": { "line": 34, "column": 10 }, "end": { "line": 34, "column": 49 } } }, "loc": { "start": { "line": 34, "column": 10 }, "end": { "line": 34, "column": 49 } } } ], "returnType": { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Listt", "decorators": [], "loc": { "start": { "line": 34, "column": 53 }, "end": { "line": 34, "column": 58 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 34, "column": 59 }, "end": { "line": 34, "column": 60 } } }, "loc": { "start": { "line": 34, "column": 59 }, "end": { "line": 34, "column": 61 } } }, "loc": { "start": { "line": 34, "column": 59 }, "end": { "line": 34, "column": 61 } } } ], "loc": { "start": { "line": 34, "column": 58 }, "end": { "line": 34, "column": 61 } } }, "loc": { "start": { "line": 34, "column": 53 }, "end": { "line": 34, "column": 63 } } }, "loc": { "start": { "line": 34, "column": 53 }, "end": { "line": 34, "column": 63 } } }, { "type": "ETSNullType", "loc": { "start": { "line": 34, "column": 64 }, "end": { "line": 34, "column": 68 } } } ], "loc": { "start": { "line": 34, "column": 53 }, "end": { "line": 34, "column": 68 } } }, "declare": true, "loc": { "start": { "line": 34, "column": 9 }, "end": { "line": 34, "column": 68 } } }, "loc": { "start": { "line": 34, "column": 9 }, "end": { "line": 34, "column": 68 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 34, "column": 5 }, "end": { "line": 34, "column": 69 } } } ], "loc": { "start": { "line": 19, "column": 22 }, "end": { "line": 35, "column": 2 } } }, "id": { "type": "Identifier", "name": "Listt", "decorators": [], "loc": { "start": { "line": 19, "column": 11 }, "end": { "line": 19, "column": 16 } } }, "extends": [], "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 19, "column": 18 }, "end": { "line": 19, "column": 19 } } }, "loc": { "start": { "line": 19, "column": 18 }, "end": { "line": 19, "column": 20 } } } ], "loc": { "start": { "line": 19, "column": 17 }, "end": { "line": 19, "column": 20 } } }, "loc": { "start": { "line": 19, "column": 1 }, "end": { "line": 37, "column": 6 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "ArrayAsListt", "decorators": [], "loc": { "start": { "line": 37, "column": 7 }, "end": { "line": 37, "column": 19 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 37, "column": 20 }, "end": { "line": 37, "column": 21 } } }, "loc": { "start": { "line": 37, "column": 20 }, "end": { "line": 37, "column": 22 } } } ], "loc": { "start": { "line": 37, "column": 19 }, "end": { "line": 37, "column": 22 } } }, "superClass": null, "implements": [ { "type": "TSClassImplements", "expression": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Listt", "decorators": [], "loc": { "start": { "line": 37, "column": 34 }, "end": { "line": 37, "column": 39 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 37, "column": 40 }, "end": { "line": 37, "column": 41 } } }, "loc": { "start": { "line": 37, "column": 40 }, "end": { "line": 37, "column": 42 } } }, "loc": { "start": { "line": 37, "column": 40 }, "end": { "line": 37, "column": 42 } } } ], "loc": { "start": { "line": 37, "column": 39 }, "end": { "line": 37, "column": 42 } } }, "loc": { "start": { "line": 37, "column": 34 }, "end": { "line": 37, "column": 44 } } }, "loc": { "start": { "line": 37, "column": 34 }, "end": { "line": 37, "column": 44 } } }, "loc": { "start": { "line": 37, "column": 34 }, "end": { "line": 37, "column": 44 } } } ], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "init", "decorators": [], "loc": { "start": { "line": 39, "column": 13 }, "end": { "line": 39, "column": 17 } } }, "kind": "method", "accessibility": "private", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "init", "decorators": [], "loc": { "start": { "line": 39, "column": 13 }, "end": { "line": 39, "column": 17 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "capacity", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 39, "column": 28 }, "end": { "line": 39, "column": 31 } } }, "decorators": [], "loc": { "start": { "line": 39, "column": 18 }, "end": { "line": 39, "column": 31 } } }, "loc": { "start": { "line": 39, "column": 18 }, "end": { "line": 39, "column": 31 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "val", "typeAnnotation": { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 39, "column": 38 }, "end": { "line": 39, "column": 39 } } }, "loc": { "start": { "line": 39, "column": 38 }, "end": { "line": 39, "column": 41 } } }, "loc": { "start": { "line": 39, "column": 38 }, "end": { "line": 39, "column": 41 } } }, { "type": "ETSNullType", "loc": { "start": { "line": 39, "column": 42 }, "end": { "line": 39, "column": 46 } } } ], "loc": { "start": { "line": 39, "column": 38 }, "end": { "line": 39, "column": 46 } } }, "decorators": [], "loc": { "start": { "line": 39, "column": 33 }, "end": { "line": 39, "column": 46 } } }, "loc": { "start": { "line": 39, "column": 33 }, "end": { "line": 39, "column": 46 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 39, "column": 49 }, "end": { "line": 39, "column": 53 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 40, "column": 9 }, "end": { "line": 40, "column": 13 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 40, "column": 14 }, "end": { "line": 40, "column": 18 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 40, "column": 9 }, "end": { "line": 40, "column": 18 } } }, "right": { "type": "ETSNewArrayInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 40, "column": 25 }, "end": { "line": 40, "column": 26 } } }, "loc": { "start": { "line": 40, "column": 25 }, "end": { "line": 40, "column": 27 } } }, "loc": { "start": { "line": 40, "column": 25 }, "end": { "line": 40, "column": 27 } } }, "dimension": { "type": "Identifier", "name": "capacity", "decorators": [], "loc": { "start": { "line": 40, "column": 27 }, "end": { "line": 40, "column": 35 } } }, "loc": { "start": { "line": 40, "column": 21 }, "end": { "line": 40, "column": 36 } } }, "loc": { "start": { "line": 40, "column": 9 }, "end": { "line": 40, "column": 36 } } }, "loc": { "start": { "line": 40, "column": 9 }, "end": { "line": 40, "column": 37 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 41, "column": 18 }, "end": { "line": 41, "column": 19 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 41, "column": 22 }, "end": { "line": 41, "column": 23 } } }, "loc": { "start": { "line": 41, "column": 18 }, "end": { "line": 41, "column": 23 } } } ], "kind": "let", "loc": { "start": { "line": 41, "column": 14 }, "end": { "line": 41, "column": 23 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 41, "column": 25 }, "end": { "line": 41, "column": 26 } } }, "right": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 41, "column": 29 }, "end": { "line": 41, "column": 33 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 41, "column": 34 }, "end": { "line": 41, "column": 38 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 41, "column": 29 }, "end": { "line": 41, "column": 38 } } }, "property": { "type": "Identifier", "name": "length", "decorators": [], "loc": { "start": { "line": 41, "column": 39 }, "end": { "line": 41, "column": 45 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 41, "column": 29 }, "end": { "line": 41, "column": 45 } } }, "loc": { "start": { "line": 41, "column": 25 }, "end": { "line": 41, "column": 45 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": true, "argument": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 41, "column": 49 }, "end": { "line": 41, "column": 50 } } }, "loc": { "start": { "line": 41, "column": 47 }, "end": { "line": 41, "column": 50 } } }, "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 41, "column": 52 }, "end": { "line": 42, "column": 10 } } }, "loc": { "start": { "line": 41, "column": 9 }, "end": { "line": 42, "column": 10 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 43, "column": 9 }, "end": { "line": 43, "column": 13 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 43, "column": 14 }, "end": { "line": 43, "column": 21 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 43, "column": 9 }, "end": { "line": 43, "column": 21 } } }, "right": { "type": "Identifier", "name": "capacity", "decorators": [], "loc": { "start": { "line": 43, "column": 24 }, "end": { "line": 43, "column": 32 } } }, "loc": { "start": { "line": 43, "column": 9 }, "end": { "line": 43, "column": 32 } } }, "loc": { "start": { "line": 43, "column": 9 }, "end": { "line": 43, "column": 33 } } } ], "loc": { "start": { "line": 39, "column": 54 }, "end": { "line": 44, "column": 6 } } }, "loc": { "start": { "line": 39, "column": 17 }, "end": { "line": 44, "column": 6 } } }, "loc": { "start": { "line": 39, "column": 17 }, "end": { "line": 44, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 39, "column": 5 }, "end": { "line": 44, "column": 6 } } }, { "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": "capacity", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 46, "column": 27 }, "end": { "line": 46, "column": 30 } } }, "decorators": [], "loc": { "start": { "line": 46, "column": 17 }, "end": { "line": 46, "column": 30 } } }, "loc": { "start": { "line": 46, "column": 17 }, "end": { "line": 46, "column": 30 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "val", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 46, "column": 37 }, "end": { "line": 46, "column": 38 } } }, "loc": { "start": { "line": 46, "column": 37 }, "end": { "line": 46, "column": 39 } } }, "loc": { "start": { "line": 46, "column": 37 }, "end": { "line": 46, "column": 39 } } }, "decorators": [], "loc": { "start": { "line": 46, "column": 32 }, "end": { "line": 46, "column": 39 } } }, "loc": { "start": { "line": 46, "column": 32 }, "end": { "line": 46, "column": 39 } } } ], "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 47, "column": 9 }, "end": { "line": 47, "column": 13 } } }, "property": { "type": "Identifier", "name": "init", "decorators": [], "loc": { "start": { "line": 47, "column": 14 }, "end": { "line": 47, "column": 18 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 47, "column": 9 }, "end": { "line": 47, "column": 18 } } }, "arguments": [ { "type": "Identifier", "name": "capacity", "decorators": [], "loc": { "start": { "line": 47, "column": 19 }, "end": { "line": 47, "column": 27 } } }, { "type": "Identifier", "name": "val", "decorators": [], "loc": { "start": { "line": 47, "column": 29 }, "end": { "line": 47, "column": 32 } } } ], "optional": false, "loc": { "start": { "line": 47, "column": 9 }, "end": { "line": 47, "column": 33 } } }, "loc": { "start": { "line": 47, "column": 9 }, "end": { "line": 47, "column": 34 } } } ], "loc": { "start": { "line": 46, "column": 40 }, "end": { "line": 48, "column": 6 } } }, "loc": { "start": { "line": 46, "column": 16 }, "end": { "line": 48, "column": 6 } } }, "loc": { "start": { "line": 46, "column": 16 }, "end": { "line": 48, "column": 6 } } }, "overloads": [ { "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": [], "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 51, "column": 9 }, "end": { "line": 51, "column": 13 } } }, "property": { "type": "Identifier", "name": "init", "decorators": [], "loc": { "start": { "line": 51, "column": 14 }, "end": { "line": 51, "column": 18 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 51, "column": 9 }, "end": { "line": 51, "column": 18 } } }, "arguments": [ { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 51, "column": 19 }, "end": { "line": 51, "column": 20 } } }, { "type": "NullLiteral", "value": null, "loc": { "start": { "line": 51, "column": 22 }, "end": { "line": 51, "column": 26 } } } ], "optional": false, "loc": { "start": { "line": 51, "column": 9 }, "end": { "line": 51, "column": 27 } } }, "loc": { "start": { "line": 51, "column": 9 }, "end": { "line": 51, "column": 28 } } } ], "loc": { "start": { "line": 50, "column": 19 }, "end": { "line": 52, "column": 6 } } }, "loc": { "start": { "line": 50, "column": 16 }, "end": { "line": 52, "column": 6 } } }, "loc": { "start": { "line": 50, "column": 16 }, "end": { "line": 52, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 50, "column": 5 }, "end": { "line": 52, "column": 6 } } }, { "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": "capacity", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 54, "column": 27 }, "end": { "line": 54, "column": 30 } } }, "decorators": [], "loc": { "start": { "line": 54, "column": 17 }, "end": { "line": 54, "column": 30 } } }, "loc": { "start": { "line": 54, "column": 17 }, "end": { "line": 54, "column": 30 } } } ], "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 55, "column": 9 }, "end": { "line": 55, "column": 13 } } }, "property": { "type": "Identifier", "name": "init", "decorators": [], "loc": { "start": { "line": 55, "column": 14 }, "end": { "line": 55, "column": 18 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 55, "column": 9 }, "end": { "line": 55, "column": 18 } } }, "arguments": [ { "type": "Identifier", "name": "capacity", "decorators": [], "loc": { "start": { "line": 55, "column": 19 }, "end": { "line": 55, "column": 27 } } }, { "type": "NullLiteral", "value": null, "loc": { "start": { "line": 55, "column": 29 }, "end": { "line": 55, "column": 33 } } } ], "optional": false, "loc": { "start": { "line": 55, "column": 9 }, "end": { "line": 55, "column": 34 } } }, "loc": { "start": { "line": 55, "column": 9 }, "end": { "line": 55, "column": 35 } } } ], "loc": { "start": { "line": 54, "column": 32 }, "end": { "line": 56, "column": 6 } } }, "loc": { "start": { "line": 54, "column": 16 }, "end": { "line": 56, "column": 6 } } }, "loc": { "start": { "line": 54, "column": 16 }, "end": { "line": 56, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 54, "column": 5 }, "end": { "line": 56, "column": 6 } } } ], "decorators": [], "loc": { "start": { "line": 46, "column": 5 }, "end": { "line": 48, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "reserve", "decorators": [], "loc": { "start": { "line": 58, "column": 12 }, "end": { "line": 58, "column": 19 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "reserve", "decorators": [], "loc": { "start": { "line": 58, "column": 12 }, "end": { "line": 58, "column": 19 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "capacity", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 58, "column": 30 }, "end": { "line": 58, "column": 33 } } }, "decorators": [], "loc": { "start": { "line": 58, "column": 20 }, "end": { "line": 58, "column": 33 } } }, "loc": { "start": { "line": 58, "column": 20 }, "end": { "line": 58, "column": 33 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 58, "column": 36 }, "end": { "line": 58, "column": 40 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 59, "column": 13 }, "end": { "line": 59, "column": 17 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 59, "column": 18 }, "end": { "line": 59, "column": 22 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 59, "column": 13 }, "end": { "line": 59, "column": 22 } } }, "property": { "type": "Identifier", "name": "length", "decorators": [], "loc": { "start": { "line": 59, "column": 23 }, "end": { "line": 59, "column": 29 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 59, "column": 13 }, "end": { "line": 59, "column": 29 } } }, "right": { "type": "Identifier", "name": "capacity", "decorators": [], "loc": { "start": { "line": 59, "column": 32 }, "end": { "line": 59, "column": 40 } } }, "loc": { "start": { "line": 59, "column": 13 }, "end": { "line": 59, "column": 40 } } }, "consequent": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "newData", "decorators": [], "loc": { "start": { "line": 60, "column": 17 }, "end": { "line": 60, "column": 24 } } }, "init": { "type": "ETSNewArrayInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 60, "column": 31 }, "end": { "line": 60, "column": 32 } } }, "loc": { "start": { "line": 60, "column": 31 }, "end": { "line": 60, "column": 33 } } }, "loc": { "start": { "line": 60, "column": 31 }, "end": { "line": 60, "column": 33 } } }, "dimension": { "type": "Identifier", "name": "capacity", "decorators": [], "loc": { "start": { "line": 60, "column": 33 }, "end": { "line": 60, "column": 41 } } }, "loc": { "start": { "line": 60, "column": 27 }, "end": { "line": 60, "column": 42 } } }, "loc": { "start": { "line": 60, "column": 17 }, "end": { "line": 60, "column": 42 } } } ], "kind": "let", "loc": { "start": { "line": 60, "column": 13 }, "end": { "line": 60, "column": 43 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 61, "column": 22 }, "end": { "line": 61, "column": 23 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 61, "column": 26 }, "end": { "line": 61, "column": 27 } } }, "loc": { "start": { "line": 61, "column": 22 }, "end": { "line": 61, "column": 27 } } } ], "kind": "let", "loc": { "start": { "line": 61, "column": 18 }, "end": { "line": 61, "column": 27 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 61, "column": 29 }, "end": { "line": 61, "column": 30 } } }, "right": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 61, "column": 33 }, "end": { "line": 61, "column": 37 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 61, "column": 38 }, "end": { "line": 61, "column": 45 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 61, "column": 33 }, "end": { "line": 61, "column": 45 } } }, "loc": { "start": { "line": 61, "column": 29 }, "end": { "line": 61, "column": 45 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": true, "argument": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 61, "column": 49 }, "end": { "line": 61, "column": 50 } } }, "loc": { "start": { "line": 61, "column": 47 }, "end": { "line": 61, "column": 50 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "newData", "decorators": [], "loc": { "start": { "line": 62, "column": 16 }, "end": { "line": 62, "column": 23 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 62, "column": 24 }, "end": { "line": 62, "column": 25 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 62, "column": 16 }, "end": { "line": 62, "column": 26 } } }, "right": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 62, "column": 29 }, "end": { "line": 62, "column": 33 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 62, "column": 34 }, "end": { "line": 62, "column": 38 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 62, "column": 29 }, "end": { "line": 62, "column": 38 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 62, "column": 39 }, "end": { "line": 62, "column": 40 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 62, "column": 29 }, "end": { "line": 62, "column": 41 } } }, "loc": { "start": { "line": 62, "column": 16 }, "end": { "line": 62, "column": 41 } } }, "loc": { "start": { "line": 62, "column": 16 }, "end": { "line": 62, "column": 42 } } } ], "loc": { "start": { "line": 61, "column": 52 }, "end": { "line": 63, "column": 14 } } }, "loc": { "start": { "line": 61, "column": 13 }, "end": { "line": 63, "column": 14 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 64, "column": 13 }, "end": { "line": 64, "column": 17 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 64, "column": 18 }, "end": { "line": 64, "column": 22 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 64, "column": 13 }, "end": { "line": 64, "column": 22 } } }, "right": { "type": "Identifier", "name": "newData", "decorators": [], "loc": { "start": { "line": 64, "column": 25 }, "end": { "line": 64, "column": 32 } } }, "loc": { "start": { "line": 64, "column": 13 }, "end": { "line": 64, "column": 32 } } }, "loc": { "start": { "line": 64, "column": 13 }, "end": { "line": 64, "column": 33 } } } ], "loc": { "start": { "line": 59, "column": 42 }, "end": { "line": 65, "column": 10 } } }, "alternate": null, "loc": { "start": { "line": 59, "column": 9 }, "end": { "line": 65, "column": 10 } } } ], "loc": { "start": { "line": 58, "column": 41 }, "end": { "line": 66, "column": 6 } } }, "loc": { "start": { "line": 58, "column": 19 }, "end": { "line": 66, "column": 6 } } }, "loc": { "start": { "line": 58, "column": 19 }, "end": { "line": 66, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 58, "column": 5 }, "end": { "line": 66, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "getNewCapacity", "decorators": [], "loc": { "start": { "line": 68, "column": 13 }, "end": { "line": 68, "column": 27 } } }, "kind": "method", "accessibility": "private", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "getNewCapacity", "decorators": [], "loc": { "start": { "line": 68, "column": 13 }, "end": { "line": 68, "column": 27 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "currentCapacity", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 68, "column": 45 }, "end": { "line": 68, "column": 48 } } }, "decorators": [], "loc": { "start": { "line": 68, "column": 28 }, "end": { "line": 68, "column": 48 } } }, "loc": { "start": { "line": 68, "column": 28 }, "end": { "line": 68, "column": 48 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 68, "column": 51 }, "end": { "line": 68, "column": 54 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "fastGrowThreshold", "decorators": [], "loc": { "start": { "line": 69, "column": 15 }, "end": { "line": 69, "column": 32 } } }, "init": { "type": "NumberLiteral", "value": 8192, "loc": { "start": { "line": 69, "column": 35 }, "end": { "line": 69, "column": 39 } } }, "loc": { "start": { "line": 69, "column": 15 }, "end": { "line": 69, "column": 39 } } } ], "kind": "const", "loc": { "start": { "line": 69, "column": 9 }, "end": { "line": 69, "column": 40 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "multiplier", "decorators": [], "loc": { "start": { "line": 70, "column": 15 }, "end": { "line": 70, "column": 25 } } }, "init": { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 70, "column": 28 }, "end": { "line": 70, "column": 29 } } }, "loc": { "start": { "line": 70, "column": 15 }, "end": { "line": 70, "column": 29 } } } ], "kind": "const", "loc": { "start": { "line": 70, "column": 9 }, "end": { "line": 70, "column": 30 } } }, { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "currentCapacity", "decorators": [], "loc": { "start": { "line": 71, "column": 13 }, "end": { "line": 71, "column": 28 } } }, "right": { "type": "Identifier", "name": "fastGrowThreshold", "decorators": [], "loc": { "start": { "line": 71, "column": 31 }, "end": { "line": 71, "column": 48 } } }, "loc": { "start": { "line": 71, "column": 13 }, "end": { "line": 71, "column": 48 } } }, "consequent": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "BinaryExpression", "operator": "*", "left": { "type": "BinaryExpression", "operator": "*", "left": { "type": "BinaryExpression", "operator": "+", "left": { "type": "Identifier", "name": "currentCapacity", "decorators": [], "loc": { "start": { "line": 73, "column": 21 }, "end": { "line": 73, "column": 36 } } }, "right": { "type": "NumberLiteral", "value": 4, "loc": { "start": { "line": 73, "column": 39 }, "end": { "line": 73, "column": 40 } } }, "loc": { "start": { "line": 73, "column": 20 }, "end": { "line": 73, "column": 41 } } }, "right": { "type": "Identifier", "name": "multiplier", "decorators": [], "loc": { "start": { "line": 73, "column": 44 }, "end": { "line": 73, "column": 54 } } }, "loc": { "start": { "line": 73, "column": 20 }, "end": { "line": 73, "column": 54 } } }, "right": { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 73, "column": 57 }, "end": { "line": 73, "column": 58 } } }, "loc": { "start": { "line": 73, "column": 20 }, "end": { "line": 73, "column": 58 } } }, "loc": { "start": { "line": 73, "column": 13 }, "end": { "line": 73, "column": 59 } } } ], "loc": { "start": { "line": 71, "column": 50 }, "end": { "line": 74, "column": 10 } } }, "alternate": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "currentCapacity", "decorators": [], "loc": { "start": { "line": 75, "column": 20 }, "end": { "line": 75, "column": 35 } } }, "right": { "type": "Identifier", "name": "multiplier", "decorators": [], "loc": { "start": { "line": 75, "column": 38 }, "end": { "line": 75, "column": 48 } } }, "loc": { "start": { "line": 75, "column": 20 }, "end": { "line": 75, "column": 48 } } }, "loc": { "start": { "line": 75, "column": 13 }, "end": { "line": 75, "column": 49 } } } ], "loc": { "start": { "line": 74, "column": 16 }, "end": { "line": 76, "column": 10 } } }, "loc": { "start": { "line": 71, "column": 9 }, "end": { "line": 76, "column": 10 } } } ], "loc": { "start": { "line": 68, "column": 55 }, "end": { "line": 77, "column": 6 } } }, "loc": { "start": { "line": 68, "column": 27 }, "end": { "line": 77, "column": 6 } } }, "loc": { "start": { "line": 68, "column": 27 }, "end": { "line": 77, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 68, "column": 5 }, "end": { "line": 77, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "pushFront", "decorators": [], "loc": { "start": { "line": 79, "column": 21 }, "end": { "line": 79, "column": 30 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "pushFront", "decorators": [], "loc": { "start": { "line": 79, "column": 21 }, "end": { "line": 79, "column": 30 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "e", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 79, "column": 34 }, "end": { "line": 79, "column": 35 } } }, "loc": { "start": { "line": 79, "column": 34 }, "end": { "line": 79, "column": 36 } } }, "loc": { "start": { "line": 79, "column": 34 }, "end": { "line": 79, "column": 36 } } }, "decorators": [], "loc": { "start": { "line": 79, "column": 31 }, "end": { "line": 79, "column": 36 } } }, "loc": { "start": { "line": 79, "column": 31 }, "end": { "line": 79, "column": 36 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 79, "column": 38 }, "end": { "line": 79, "column": 42 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "dst", "decorators": [], "loc": { "start": { "line": 80, "column": 13 }, "end": { "line": 80, "column": 16 } } }, "init": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 80, "column": 19 }, "end": { "line": 80, "column": 23 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 80, "column": 24 }, "end": { "line": 80, "column": 28 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 80, "column": 19 }, "end": { "line": 80, "column": 28 } } }, "loc": { "start": { "line": 80, "column": 13 }, "end": { "line": 80, "column": 28 } } } ], "kind": "let", "loc": { "start": { "line": 80, "column": 9 }, "end": { "line": 80, "column": 29 } } }, { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": "==", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 81, "column": 13 }, "end": { "line": 81, "column": 17 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 81, "column": 18 }, "end": { "line": 81, "column": 25 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 81, "column": 13 }, "end": { "line": 81, "column": 25 } } }, "right": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 81, "column": 29 }, "end": { "line": 81, "column": 33 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 81, "column": 34 }, "end": { "line": 81, "column": 38 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 81, "column": 29 }, "end": { "line": 81, "column": 38 } } }, "property": { "type": "Identifier", "name": "length", "decorators": [], "loc": { "start": { "line": 81, "column": 39 }, "end": { "line": 81, "column": 45 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 81, "column": 29 }, "end": { "line": 81, "column": 45 } } }, "loc": { "start": { "line": 81, "column": 13 }, "end": { "line": 81, "column": 45 } } }, "consequent": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "dst", "decorators": [], "loc": { "start": { "line": 82, "column": 13 }, "end": { "line": 82, "column": 16 } } }, "right": { "type": "ETSNewArrayInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 82, "column": 23 }, "end": { "line": 82, "column": 24 } } }, "loc": { "start": { "line": 82, "column": 23 }, "end": { "line": 82, "column": 25 } } }, "loc": { "start": { "line": 82, "column": 23 }, "end": { "line": 82, "column": 25 } } }, "dimension": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 82, "column": 25 }, "end": { "line": 82, "column": 29 } } }, "property": { "type": "Identifier", "name": "getNewCapacity", "decorators": [], "loc": { "start": { "line": 82, "column": 30 }, "end": { "line": 82, "column": 44 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 82, "column": 25 }, "end": { "line": 82, "column": 44 } } }, "arguments": [ { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 82, "column": 45 }, "end": { "line": 82, "column": 49 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 82, "column": 50 }, "end": { "line": 82, "column": 54 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 82, "column": 45 }, "end": { "line": 82, "column": 54 } } }, "property": { "type": "Identifier", "name": "length", "decorators": [], "loc": { "start": { "line": 82, "column": 55 }, "end": { "line": 82, "column": 61 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 82, "column": 45 }, "end": { "line": 82, "column": 61 } } } ], "optional": false, "loc": { "start": { "line": 82, "column": 25 }, "end": { "line": 82, "column": 62 } } }, "loc": { "start": { "line": 82, "column": 19 }, "end": { "line": 82, "column": 63 } } }, "loc": { "start": { "line": 82, "column": 13 }, "end": { "line": 82, "column": 63 } } }, "loc": { "start": { "line": 82, "column": 13 }, "end": { "line": 82, "column": 64 } } } ], "loc": { "start": { "line": 81, "column": 47 }, "end": { "line": 83, "column": 10 } } }, "alternate": null, "loc": { "start": { "line": 81, "column": 9 }, "end": { "line": 83, "column": 10 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 84, "column": 18 }, "end": { "line": 84, "column": 19 } } }, "init": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 84, "column": 22 }, "end": { "line": 84, "column": 26 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 84, "column": 27 }, "end": { "line": 84, "column": 34 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 84, "column": 22 }, "end": { "line": 84, "column": 34 } } }, "loc": { "start": { "line": 84, "column": 18 }, "end": { "line": 84, "column": 34 } } } ], "kind": "let", "loc": { "start": { "line": 84, "column": 14 }, "end": { "line": 84, "column": 34 } } }, "test": { "type": "BinaryExpression", "operator": "!=", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 84, "column": 36 }, "end": { "line": 84, "column": 37 } } }, "right": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 84, "column": 41 }, "end": { "line": 84, "column": 42 } } }, "loc": { "start": { "line": 84, "column": 36 }, "end": { "line": 84, "column": 42 } } }, "update": { "type": "UpdateExpression", "operator": "--", "prefix": true, "argument": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 84, "column": 46 }, "end": { "line": 84, "column": 47 } } }, "loc": { "start": { "line": 84, "column": 44 }, "end": { "line": 84, "column": 47 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "dst", "decorators": [], "loc": { "start": { "line": 85, "column": 13 }, "end": { "line": 85, "column": 16 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 85, "column": 17 }, "end": { "line": 85, "column": 18 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 85, "column": 13 }, "end": { "line": 85, "column": 19 } } }, "right": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 85, "column": 22 }, "end": { "line": 85, "column": 26 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 85, "column": 27 }, "end": { "line": 85, "column": 31 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 85, "column": 22 }, "end": { "line": 85, "column": 31 } } }, "property": { "type": "BinaryExpression", "operator": "-", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 85, "column": 32 }, "end": { "line": 85, "column": 33 } } }, "right": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 85, "column": 34 }, "end": { "line": 85, "column": 35 } } }, "loc": { "start": { "line": 85, "column": 32 }, "end": { "line": 85, "column": 35 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 85, "column": 22 }, "end": { "line": 85, "column": 36 } } }, "loc": { "start": { "line": 85, "column": 13 }, "end": { "line": 85, "column": 36 } } }, "loc": { "start": { "line": 85, "column": 13 }, "end": { "line": 85, "column": 37 } } } ], "loc": { "start": { "line": 84, "column": 49 }, "end": { "line": 86, "column": 10 } } }, "loc": { "start": { "line": 84, "column": 9 }, "end": { "line": 86, "column": 10 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 87, "column": 9 }, "end": { "line": 87, "column": 13 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 87, "column": 14 }, "end": { "line": 87, "column": 18 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 87, "column": 9 }, "end": { "line": 87, "column": 18 } } }, "right": { "type": "Identifier", "name": "dst", "decorators": [], "loc": { "start": { "line": 87, "column": 21 }, "end": { "line": 87, "column": 24 } } }, "loc": { "start": { "line": 87, "column": 9 }, "end": { "line": 87, "column": 24 } } }, "loc": { "start": { "line": 87, "column": 9 }, "end": { "line": 87, "column": 25 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 88, "column": 9 }, "end": { "line": 88, "column": 13 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 88, "column": 14 }, "end": { "line": 88, "column": 18 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 88, "column": 9 }, "end": { "line": 88, "column": 18 } } }, "property": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 88, "column": 19 }, "end": { "line": 88, "column": 20 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 88, "column": 9 }, "end": { "line": 88, "column": 21 } } }, "right": { "type": "Identifier", "name": "e", "decorators": [], "loc": { "start": { "line": 88, "column": 24 }, "end": { "line": 88, "column": 25 } } }, "loc": { "start": { "line": 88, "column": 9 }, "end": { "line": 88, "column": 25 } } }, "loc": { "start": { "line": 88, "column": 9 }, "end": { "line": 88, "column": 26 } } }, { "type": "ExpressionStatement", "expression": { "type": "UpdateExpression", "operator": "++", "prefix": true, "argument": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 89, "column": 11 }, "end": { "line": 89, "column": 15 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 89, "column": 16 }, "end": { "line": 89, "column": 23 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 89, "column": 11 }, "end": { "line": 89, "column": 23 } } }, "loc": { "start": { "line": 89, "column": 9 }, "end": { "line": 89, "column": 23 } } }, "loc": { "start": { "line": 89, "column": 9 }, "end": { "line": 89, "column": 24 } } } ], "loc": { "start": { "line": 79, "column": 43 }, "end": { "line": 90, "column": 6 } } }, "loc": { "start": { "line": 79, "column": 30 }, "end": { "line": 90, "column": 6 } } }, "loc": { "start": { "line": 79, "column": 30 }, "end": { "line": 90, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 79, "column": 5 }, "end": { "line": 90, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "popFront", "decorators": [], "loc": { "start": { "line": 92, "column": 21 }, "end": { "line": 92, "column": 29 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "popFront", "decorators": [], "loc": { "start": { "line": 92, "column": 21 }, "end": { "line": 92, "column": 29 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 92, "column": 33 }, "end": { "line": 92, "column": 34 } } }, "loc": { "start": { "line": 92, "column": 33 }, "end": { "line": 92, "column": 36 } } }, "loc": { "start": { "line": 92, "column": 33 }, "end": { "line": 92, "column": 36 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "AssertStatement", "test": { "type": "BinaryExpression", "operator": ">", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 93, "column": 17 }, "end": { "line": 93, "column": 21 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 93, "column": 22 }, "end": { "line": 93, "column": 29 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 93, "column": 17 }, "end": { "line": 93, "column": 29 } } }, "right": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 93, "column": 32 }, "end": { "line": 93, "column": 33 } } }, "loc": { "start": { "line": 93, "column": 16 }, "end": { "line": 93, "column": 34 } } }, "second": { "type": "StringLiteral", "value": "No data to popFront from ArrayAsList!", "loc": { "start": { "line": 93, "column": 36 }, "end": { "line": 93, "column": 75 } } }, "loc": { "start": { "line": 93, "column": 9 }, "end": { "line": 93, "column": 75 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "res", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 94, "column": 18 }, "end": { "line": 94, "column": 19 } } }, "loc": { "start": { "line": 94, "column": 18 }, "end": { "line": 94, "column": 21 } } }, "loc": { "start": { "line": 94, "column": 18 }, "end": { "line": 94, "column": 21 } } }, "decorators": [], "loc": { "start": { "line": 94, "column": 13 }, "end": { "line": 94, "column": 16 } } }, "init": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 94, "column": 22 }, "end": { "line": 94, "column": 26 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 94, "column": 27 }, "end": { "line": 94, "column": 31 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 94, "column": 22 }, "end": { "line": 94, "column": 31 } } }, "property": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 94, "column": 32 }, "end": { "line": 94, "column": 33 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 94, "column": 22 }, "end": { "line": 94, "column": 34 } } }, "loc": { "start": { "line": 94, "column": 13 }, "end": { "line": 94, "column": 34 } } } ], "kind": "let", "loc": { "start": { "line": 94, "column": 9 }, "end": { "line": 94, "column": 35 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 95, "column": 18 }, "end": { "line": 95, "column": 19 } } }, "init": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 95, "column": 22 }, "end": { "line": 95, "column": 23 } } }, "loc": { "start": { "line": 95, "column": 18 }, "end": { "line": 95, "column": 23 } } } ], "kind": "let", "loc": { "start": { "line": 95, "column": 14 }, "end": { "line": 95, "column": 23 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 95, "column": 25 }, "end": { "line": 95, "column": 26 } } }, "right": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 95, "column": 29 }, "end": { "line": 95, "column": 33 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 95, "column": 34 }, "end": { "line": 95, "column": 41 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 95, "column": 29 }, "end": { "line": 95, "column": 41 } } }, "loc": { "start": { "line": 95, "column": 25 }, "end": { "line": 95, "column": 41 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": true, "argument": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 95, "column": 45 }, "end": { "line": 95, "column": 46 } } }, "loc": { "start": { "line": 95, "column": 43 }, "end": { "line": 95, "column": 46 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 96, "column": 13 }, "end": { "line": 96, "column": 17 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 96, "column": 18 }, "end": { "line": 96, "column": 22 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 96, "column": 13 }, "end": { "line": 96, "column": 22 } } }, "property": { "type": "BinaryExpression", "operator": "-", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 96, "column": 23 }, "end": { "line": 96, "column": 24 } } }, "right": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 96, "column": 25 }, "end": { "line": 96, "column": 26 } } }, "loc": { "start": { "line": 96, "column": 23 }, "end": { "line": 96, "column": 26 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 96, "column": 13 }, "end": { "line": 96, "column": 27 } } }, "right": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 96, "column": 30 }, "end": { "line": 96, "column": 34 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 96, "column": 35 }, "end": { "line": 96, "column": 39 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 96, "column": 30 }, "end": { "line": 96, "column": 39 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 96, "column": 40 }, "end": { "line": 96, "column": 41 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 96, "column": 30 }, "end": { "line": 96, "column": 42 } } }, "loc": { "start": { "line": 96, "column": 13 }, "end": { "line": 96, "column": 42 } } }, "loc": { "start": { "line": 96, "column": 13 }, "end": { "line": 96, "column": 43 } } } ], "loc": { "start": { "line": 95, "column": 48 }, "end": { "line": 97, "column": 10 } } }, "loc": { "start": { "line": 95, "column": 9 }, "end": { "line": 97, "column": 10 } } }, { "type": "ExpressionStatement", "expression": { "type": "UpdateExpression", "operator": "--", "prefix": true, "argument": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 98, "column": 11 }, "end": { "line": 98, "column": 15 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 98, "column": 16 }, "end": { "line": 98, "column": 23 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 98, "column": 11 }, "end": { "line": 98, "column": 23 } } }, "loc": { "start": { "line": 98, "column": 9 }, "end": { "line": 98, "column": 23 } } }, "loc": { "start": { "line": 98, "column": 9 }, "end": { "line": 98, "column": 24 } } }, { "type": "ReturnStatement", "argument": { "type": "Identifier", "name": "res", "decorators": [], "loc": { "start": { "line": 99, "column": 16 }, "end": { "line": 99, "column": 19 } } }, "loc": { "start": { "line": 99, "column": 9 }, "end": { "line": 99, "column": 20 } } } ], "loc": { "start": { "line": 92, "column": 35 }, "end": { "line": 100, "column": 6 } } }, "loc": { "start": { "line": 92, "column": 29 }, "end": { "line": 100, "column": 6 } } }, "loc": { "start": { "line": 92, "column": 29 }, "end": { "line": 100, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 92, "column": 5 }, "end": { "line": 100, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "pushBack", "decorators": [], "loc": { "start": { "line": 102, "column": 21 }, "end": { "line": 102, "column": 29 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "pushBack", "decorators": [], "loc": { "start": { "line": 102, "column": 21 }, "end": { "line": 102, "column": 29 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "e", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 102, "column": 33 }, "end": { "line": 102, "column": 34 } } }, "loc": { "start": { "line": 102, "column": 33 }, "end": { "line": 102, "column": 35 } } }, "loc": { "start": { "line": 102, "column": 33 }, "end": { "line": 102, "column": 35 } } }, "decorators": [], "loc": { "start": { "line": 102, "column": 30 }, "end": { "line": 102, "column": 35 } } }, "loc": { "start": { "line": 102, "column": 30 }, "end": { "line": 102, "column": 35 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 102, "column": 37 }, "end": { "line": 102, "column": 41 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": "==", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 103, "column": 13 }, "end": { "line": 103, "column": 17 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 103, "column": 18 }, "end": { "line": 103, "column": 25 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 103, "column": 13 }, "end": { "line": 103, "column": 25 } } }, "right": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 103, "column": 29 }, "end": { "line": 103, "column": 33 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 103, "column": 34 }, "end": { "line": 103, "column": 38 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 103, "column": 29 }, "end": { "line": 103, "column": 38 } } }, "property": { "type": "Identifier", "name": "length", "decorators": [], "loc": { "start": { "line": 103, "column": 39 }, "end": { "line": 103, "column": 45 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 103, "column": 29 }, "end": { "line": 103, "column": 45 } } }, "loc": { "start": { "line": 103, "column": 13 }, "end": { "line": 103, "column": 45 } } }, "consequent": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "newData", "decorators": [], "loc": { "start": { "line": 104, "column": 17 }, "end": { "line": 104, "column": 24 } } }, "init": { "type": "ETSNewArrayInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 104, "column": 31 }, "end": { "line": 104, "column": 32 } } }, "loc": { "start": { "line": 104, "column": 31 }, "end": { "line": 104, "column": 33 } } }, "loc": { "start": { "line": 104, "column": 31 }, "end": { "line": 104, "column": 33 } } }, "dimension": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 104, "column": 33 }, "end": { "line": 104, "column": 37 } } }, "property": { "type": "Identifier", "name": "getNewCapacity", "decorators": [], "loc": { "start": { "line": 104, "column": 38 }, "end": { "line": 104, "column": 52 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 104, "column": 33 }, "end": { "line": 104, "column": 52 } } }, "arguments": [ { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 104, "column": 53 }, "end": { "line": 104, "column": 57 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 104, "column": 58 }, "end": { "line": 104, "column": 62 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 104, "column": 53 }, "end": { "line": 104, "column": 62 } } }, "property": { "type": "Identifier", "name": "length", "decorators": [], "loc": { "start": { "line": 104, "column": 63 }, "end": { "line": 104, "column": 69 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 104, "column": 53 }, "end": { "line": 104, "column": 69 } } } ], "optional": false, "loc": { "start": { "line": 104, "column": 33 }, "end": { "line": 104, "column": 70 } } }, "loc": { "start": { "line": 104, "column": 27 }, "end": { "line": 104, "column": 71 } } }, "loc": { "start": { "line": 104, "column": 17 }, "end": { "line": 104, "column": 71 } } } ], "kind": "let", "loc": { "start": { "line": 104, "column": 13 }, "end": { "line": 104, "column": 72 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 105, "column": 22 }, "end": { "line": 105, "column": 23 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 105, "column": 26 }, "end": { "line": 105, "column": 27 } } }, "loc": { "start": { "line": 105, "column": 22 }, "end": { "line": 105, "column": 27 } } } ], "kind": "let", "loc": { "start": { "line": 105, "column": 18 }, "end": { "line": 105, "column": 27 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 105, "column": 29 }, "end": { "line": 105, "column": 30 } } }, "right": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 105, "column": 33 }, "end": { "line": 105, "column": 37 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 105, "column": 38 }, "end": { "line": 105, "column": 45 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 105, "column": 33 }, "end": { "line": 105, "column": 45 } } }, "loc": { "start": { "line": 105, "column": 29 }, "end": { "line": 105, "column": 45 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": true, "argument": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 105, "column": 49 }, "end": { "line": 105, "column": 50 } } }, "loc": { "start": { "line": 105, "column": 47 }, "end": { "line": 105, "column": 50 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "newData", "decorators": [], "loc": { "start": { "line": 106, "column": 17 }, "end": { "line": 106, "column": 24 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 106, "column": 25 }, "end": { "line": 106, "column": 26 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 106, "column": 17 }, "end": { "line": 106, "column": 27 } } }, "right": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 106, "column": 30 }, "end": { "line": 106, "column": 34 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 106, "column": 35 }, "end": { "line": 106, "column": 39 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 106, "column": 30 }, "end": { "line": 106, "column": 39 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 106, "column": 40 }, "end": { "line": 106, "column": 41 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 106, "column": 30 }, "end": { "line": 106, "column": 42 } } }, "loc": { "start": { "line": 106, "column": 17 }, "end": { "line": 106, "column": 42 } } }, "loc": { "start": { "line": 106, "column": 17 }, "end": { "line": 106, "column": 43 } } } ], "loc": { "start": { "line": 105, "column": 52 }, "end": { "line": 107, "column": 14 } } }, "loc": { "start": { "line": 105, "column": 13 }, "end": { "line": 107, "column": 14 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 108, "column": 13 }, "end": { "line": 108, "column": 17 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 108, "column": 18 }, "end": { "line": 108, "column": 22 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 108, "column": 13 }, "end": { "line": 108, "column": 22 } } }, "right": { "type": "Identifier", "name": "newData", "decorators": [], "loc": { "start": { "line": 108, "column": 25 }, "end": { "line": 108, "column": 32 } } }, "loc": { "start": { "line": 108, "column": 13 }, "end": { "line": 108, "column": 32 } } }, "loc": { "start": { "line": 108, "column": 13 }, "end": { "line": 108, "column": 33 } } } ], "loc": { "start": { "line": 103, "column": 47 }, "end": { "line": 109, "column": 10 } } }, "alternate": null, "loc": { "start": { "line": 103, "column": 9 }, "end": { "line": 109, "column": 10 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 110, "column": 9 }, "end": { "line": 110, "column": 13 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 110, "column": 14 }, "end": { "line": 110, "column": 18 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 110, "column": 9 }, "end": { "line": 110, "column": 18 } } }, "property": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 110, "column": 19 }, "end": { "line": 110, "column": 23 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 110, "column": 24 }, "end": { "line": 110, "column": 31 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 110, "column": 19 }, "end": { "line": 110, "column": 31 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 110, "column": 9 }, "end": { "line": 110, "column": 32 } } }, "right": { "type": "Identifier", "name": "e", "decorators": [], "loc": { "start": { "line": 110, "column": 35 }, "end": { "line": 110, "column": 36 } } }, "loc": { "start": { "line": 110, "column": 9 }, "end": { "line": 110, "column": 36 } } }, "loc": { "start": { "line": 110, "column": 9 }, "end": { "line": 110, "column": 37 } } }, { "type": "ExpressionStatement", "expression": { "type": "UpdateExpression", "operator": "++", "prefix": true, "argument": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 111, "column": 11 }, "end": { "line": 111, "column": 15 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 111, "column": 16 }, "end": { "line": 111, "column": 23 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 111, "column": 11 }, "end": { "line": 111, "column": 23 } } }, "loc": { "start": { "line": 111, "column": 9 }, "end": { "line": 111, "column": 23 } } }, "loc": { "start": { "line": 111, "column": 9 }, "end": { "line": 111, "column": 24 } } } ], "loc": { "start": { "line": 102, "column": 42 }, "end": { "line": 112, "column": 6 } } }, "loc": { "start": { "line": 102, "column": 29 }, "end": { "line": 112, "column": 6 } } }, "loc": { "start": { "line": 102, "column": 29 }, "end": { "line": 112, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 102, "column": 5 }, "end": { "line": 112, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "popBack", "decorators": [], "loc": { "start": { "line": 114, "column": 21 }, "end": { "line": 114, "column": 28 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "popBack", "decorators": [], "loc": { "start": { "line": 114, "column": 21 }, "end": { "line": 114, "column": 28 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 114, "column": 32 }, "end": { "line": 114, "column": 33 } } }, "loc": { "start": { "line": 114, "column": 32 }, "end": { "line": 114, "column": 35 } } }, "loc": { "start": { "line": 114, "column": 32 }, "end": { "line": 114, "column": 35 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "AssertStatement", "test": { "type": "BinaryExpression", "operator": ">", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 115, "column": 17 }, "end": { "line": 115, "column": 21 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 115, "column": 22 }, "end": { "line": 115, "column": 29 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 115, "column": 17 }, "end": { "line": 115, "column": 29 } } }, "right": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 115, "column": 32 }, "end": { "line": 115, "column": 33 } } }, "loc": { "start": { "line": 115, "column": 16 }, "end": { "line": 115, "column": 34 } } }, "second": { "type": "StringLiteral", "value": "No data to popBack in ArrayAsList!", "loc": { "start": { "line": 115, "column": 36 }, "end": { "line": 115, "column": 72 } } }, "loc": { "start": { "line": 115, "column": 9 }, "end": { "line": 115, "column": 72 } } }, { "type": "ExpressionStatement", "expression": { "type": "UpdateExpression", "operator": "--", "prefix": true, "argument": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 116, "column": 11 }, "end": { "line": 116, "column": 15 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 116, "column": 16 }, "end": { "line": 116, "column": 23 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 116, "column": 11 }, "end": { "line": 116, "column": 23 } } }, "loc": { "start": { "line": 116, "column": 9 }, "end": { "line": 116, "column": 23 } } }, "loc": { "start": { "line": 116, "column": 9 }, "end": { "line": 116, "column": 24 } } }, { "type": "ReturnStatement", "argument": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 117, "column": 16 }, "end": { "line": 117, "column": 20 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 117, "column": 21 }, "end": { "line": 117, "column": 25 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 117, "column": 16 }, "end": { "line": 117, "column": 25 } } }, "property": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 117, "column": 26 }, "end": { "line": 117, "column": 30 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 117, "column": 31 }, "end": { "line": 117, "column": 38 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 117, "column": 26 }, "end": { "line": 117, "column": 38 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 117, "column": 16 }, "end": { "line": 117, "column": 39 } } }, "loc": { "start": { "line": 117, "column": 9 }, "end": { "line": 117, "column": 40 } } } ], "loc": { "start": { "line": 114, "column": 34 }, "end": { "line": 118, "column": 6 } } }, "loc": { "start": { "line": 114, "column": 28 }, "end": { "line": 118, "column": 6 } } }, "loc": { "start": { "line": 114, "column": 28 }, "end": { "line": 118, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 114, "column": 5 }, "end": { "line": 118, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "size", "decorators": [], "loc": { "start": { "line": 120, "column": 21 }, "end": { "line": 120, "column": 25 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "size", "decorators": [], "loc": { "start": { "line": 120, "column": 21 }, "end": { "line": 120, "column": 25 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 120, "column": 29 }, "end": { "line": 120, "column": 32 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 121, "column": 16 }, "end": { "line": 121, "column": 20 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 121, "column": 21 }, "end": { "line": 121, "column": 28 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 121, "column": 16 }, "end": { "line": 121, "column": 28 } } }, "loc": { "start": { "line": 121, "column": 9 }, "end": { "line": 121, "column": 29 } } } ], "loc": { "start": { "line": 120, "column": 33 }, "end": { "line": 122, "column": 6 } } }, "loc": { "start": { "line": 120, "column": 25 }, "end": { "line": 122, "column": 6 } } }, "loc": { "start": { "line": 120, "column": 25 }, "end": { "line": 122, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 120, "column": 5 }, "end": { "line": 122, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "at", "decorators": [], "loc": { "start": { "line": 124, "column": 21 }, "end": { "line": 124, "column": 23 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "at", "decorators": [], "loc": { "start": { "line": 124, "column": 21 }, "end": { "line": 124, "column": 23 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "index", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 124, "column": 31 }, "end": { "line": 124, "column": 34 } } }, "decorators": [], "loc": { "start": { "line": 124, "column": 24 }, "end": { "line": 124, "column": 34 } } }, "loc": { "start": { "line": 124, "column": 24 }, "end": { "line": 124, "column": 34 } } } ], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 124, "column": 37 }, "end": { "line": 124, "column": 38 } } }, "loc": { "start": { "line": 124, "column": 37 }, "end": { "line": 124, "column": 40 } } }, "loc": { "start": { "line": 124, "column": 37 }, "end": { "line": 124, "column": 40 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 125, "column": 16 }, "end": { "line": 125, "column": 20 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 125, "column": 21 }, "end": { "line": 125, "column": 25 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 125, "column": 16 }, "end": { "line": 125, "column": 25 } } }, "property": { "type": "Identifier", "name": "index", "decorators": [], "loc": { "start": { "line": 125, "column": 26 }, "end": { "line": 125, "column": 31 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 125, "column": 16 }, "end": { "line": 125, "column": 32 } } }, "loc": { "start": { "line": 125, "column": 9 }, "end": { "line": 125, "column": 33 } } } ], "loc": { "start": { "line": 124, "column": 39 }, "end": { "line": 126, "column": 6 } } }, "loc": { "start": { "line": 124, "column": 23 }, "end": { "line": 126, "column": 6 } } }, "loc": { "start": { "line": 124, "column": 23 }, "end": { "line": 126, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 124, "column": 5 }, "end": { "line": 126, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "has", "decorators": [], "loc": { "start": { "line": 128, "column": 21 }, "end": { "line": 128, "column": 24 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "has", "decorators": [], "loc": { "start": { "line": 128, "column": 21 }, "end": { "line": 128, "column": 24 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "e", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 128, "column": 28 }, "end": { "line": 128, "column": 29 } } }, "loc": { "start": { "line": 128, "column": 28 }, "end": { "line": 128, "column": 30 } } }, "loc": { "start": { "line": 128, "column": 28 }, "end": { "line": 128, "column": 30 } } }, "decorators": [], "loc": { "start": { "line": 128, "column": 25 }, "end": { "line": 128, "column": 30 } } }, "loc": { "start": { "line": 128, "column": 25 }, "end": { "line": 128, "column": 30 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 128, "column": 32 }, "end": { "line": 128, "column": 39 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "AssertStatement", "test": { "type": "BooleanLiteral", "value": false, "loc": { "start": { "line": 129, "column": 16 }, "end": { "line": 129, "column": 21 } } }, "second": { "type": "StringLiteral", "value": "Not implemented: internal issue with calling equals", "loc": { "start": { "line": 129, "column": 23 }, "end": { "line": 129, "column": 76 } } }, "loc": { "start": { "line": 129, "column": 9 }, "end": { "line": 129, "column": 77 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 131, "column": 18 }, "end": { "line": 131, "column": 19 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 131, "column": 22 }, "end": { "line": 131, "column": 23 } } }, "loc": { "start": { "line": 131, "column": 18 }, "end": { "line": 131, "column": 23 } } } ], "kind": "let", "loc": { "start": { "line": 131, "column": 14 }, "end": { "line": 131, "column": 23 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 131, "column": 25 }, "end": { "line": 131, "column": 26 } } }, "right": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 131, "column": 29 }, "end": { "line": 131, "column": 33 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 131, "column": 34 }, "end": { "line": 131, "column": 41 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 131, "column": 29 }, "end": { "line": 131, "column": 41 } } }, "loc": { "start": { "line": 131, "column": 25 }, "end": { "line": 131, "column": 41 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": true, "argument": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 131, "column": 45 }, "end": { "line": 131, "column": 46 } } }, "loc": { "start": { "line": 131, "column": 43 }, "end": { "line": 131, "column": 46 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "IfStatement", "test": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "__runtimeEquals", "decorators": [], "loc": { "start": { "line": 132, "column": 17 }, "end": { "line": 132, "column": 32 } } }, "arguments": [ { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 132, "column": 33 }, "end": { "line": 132, "column": 37 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 132, "column": 38 }, "end": { "line": 132, "column": 42 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 132, "column": 33 }, "end": { "line": 132, "column": 42 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 132, "column": 43 }, "end": { "line": 132, "column": 44 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 132, "column": 33 }, "end": { "line": 132, "column": 45 } } }, { "type": "Identifier", "name": "e", "decorators": [], "loc": { "start": { "line": 132, "column": 47 }, "end": { "line": 132, "column": 48 } } } ], "optional": false, "loc": { "start": { "line": 132, "column": 17 }, "end": { "line": 132, "column": 49 } } }, "consequent": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "BooleanLiteral", "value": true, "loc": { "start": { "line": 133, "column": 24 }, "end": { "line": 133, "column": 28 } } }, "loc": { "start": { "line": 133, "column": 17 }, "end": { "line": 133, "column": 29 } } } ], "loc": { "start": { "line": 132, "column": 51 }, "end": { "line": 134, "column": 14 } } }, "alternate": null, "loc": { "start": { "line": 132, "column": 13 }, "end": { "line": 134, "column": 14 } } } ], "loc": { "start": { "line": 131, "column": 48 }, "end": { "line": 135, "column": 10 } } }, "loc": { "start": { "line": 131, "column": 9 }, "end": { "line": 135, "column": 10 } } }, { "type": "ReturnStatement", "argument": { "type": "BooleanLiteral", "value": false, "loc": { "start": { "line": 137, "column": 16 }, "end": { "line": 137, "column": 21 } } }, "loc": { "start": { "line": 137, "column": 9 }, "end": { "line": 137, "column": 22 } } } ], "loc": { "start": { "line": 128, "column": 40 }, "end": { "line": 138, "column": 6 } } }, "loc": { "start": { "line": 128, "column": 24 }, "end": { "line": 138, "column": 6 } } }, "loc": { "start": { "line": 128, "column": 24 }, "end": { "line": 138, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 128, "column": 5 }, "end": { "line": 138, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "forEach", "decorators": [], "loc": { "start": { "line": 141, "column": 21 }, "end": { "line": 141, "column": 28 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "forEach", "decorators": [], "loc": { "start": { "line": 141, "column": 21 }, "end": { "line": 141, "column": 28 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "fn", "typeAnnotation": { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "e", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 141, "column": 37 }, "end": { "line": 141, "column": 38 } } }, "loc": { "start": { "line": 141, "column": 37 }, "end": { "line": 141, "column": 39 } } }, "loc": { "start": { "line": 141, "column": 37 }, "end": { "line": 141, "column": 39 } } }, "decorators": [], "loc": { "start": { "line": 141, "column": 34 }, "end": { "line": 141, "column": 39 } } }, "loc": { "start": { "line": 141, "column": 34 }, "end": { "line": 141, "column": 39 } } } ], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 141, "column": 43 }, "end": { "line": 141, "column": 44 } } }, "loc": { "start": { "line": 141, "column": 43 }, "end": { "line": 141, "column": 45 } } }, "loc": { "start": { "line": 141, "column": 43 }, "end": { "line": 141, "column": 45 } } }, "loc": { "start": { "line": 141, "column": 33 }, "end": { "line": 141, "column": 45 } } }, "decorators": [], "loc": { "start": { "line": 141, "column": 29 }, "end": { "line": 141, "column": 45 } } }, "loc": { "start": { "line": 141, "column": 29 }, "end": { "line": 141, "column": 45 } } } ], "returnType": { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Listt", "decorators": [], "loc": { "start": { "line": 141, "column": 47 }, "end": { "line": 141, "column": 52 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 141, "column": 53 }, "end": { "line": 141, "column": 54 } } }, "loc": { "start": { "line": 141, "column": 53 }, "end": { "line": 141, "column": 55 } } }, "loc": { "start": { "line": 141, "column": 53 }, "end": { "line": 141, "column": 55 } } } ], "loc": { "start": { "line": 141, "column": 52 }, "end": { "line": 141, "column": 55 } } }, "loc": { "start": { "line": 141, "column": 47 }, "end": { "line": 141, "column": 57 } } }, "loc": { "start": { "line": 141, "column": 47 }, "end": { "line": 141, "column": 57 } } }, { "type": "ETSNullType", "loc": { "start": { "line": 141, "column": 58 }, "end": { "line": 141, "column": 62 } } } ], "loc": { "start": { "line": 141, "column": 47 }, "end": { "line": 141, "column": 62 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 142, "column": 18 }, "end": { "line": 142, "column": 19 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 142, "column": 22 }, "end": { "line": 142, "column": 23 } } }, "loc": { "start": { "line": 142, "column": 18 }, "end": { "line": 142, "column": 23 } } } ], "kind": "let", "loc": { "start": { "line": 142, "column": 14 }, "end": { "line": 142, "column": 23 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 142, "column": 25 }, "end": { "line": 142, "column": 26 } } }, "right": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 142, "column": 29 }, "end": { "line": 142, "column": 33 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 142, "column": 34 }, "end": { "line": 142, "column": 41 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 142, "column": 29 }, "end": { "line": 142, "column": 41 } } }, "loc": { "start": { "line": 142, "column": 25 }, "end": { "line": 142, "column": 41 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": true, "argument": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 142, "column": 45 }, "end": { "line": 142, "column": 46 } } }, "loc": { "start": { "line": 142, "column": 43 }, "end": { "line": 142, "column": 46 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 143, "column": 13 }, "end": { "line": 143, "column": 17 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 143, "column": 18 }, "end": { "line": 143, "column": 22 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 143, "column": 13 }, "end": { "line": 143, "column": 22 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 143, "column": 23 }, "end": { "line": 143, "column": 24 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 143, "column": 13 }, "end": { "line": 143, "column": 25 } } }, "right": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "fn", "decorators": [], "loc": { "start": { "line": 143, "column": 28 }, "end": { "line": 143, "column": 30 } } }, "arguments": [ { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 143, "column": 31 }, "end": { "line": 143, "column": 35 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 143, "column": 36 }, "end": { "line": 143, "column": 40 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 143, "column": 31 }, "end": { "line": 143, "column": 40 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 143, "column": 41 }, "end": { "line": 143, "column": 42 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 143, "column": 31 }, "end": { "line": 143, "column": 43 } } } ], "optional": false, "loc": { "start": { "line": 143, "column": 28 }, "end": { "line": 143, "column": 44 } } }, "loc": { "start": { "line": 143, "column": 13 }, "end": { "line": 143, "column": 44 } } }, "loc": { "start": { "line": 143, "column": 13 }, "end": { "line": 143, "column": 45 } } } ], "loc": { "start": { "line": 142, "column": 48 }, "end": { "line": 144, "column": 10 } } }, "loc": { "start": { "line": 142, "column": 9 }, "end": { "line": 144, "column": 10 } } }, { "type": "ReturnStatement", "argument": { "type": "NullLiteral", "value": null, "loc": { "start": { "line": 145, "column": 16 }, "end": { "line": 145, "column": 20 } } }, "loc": { "start": { "line": 145, "column": 9 }, "end": { "line": 145, "column": 21 } } } ], "loc": { "start": { "line": 141, "column": 63 }, "end": { "line": 146, "column": 6 } } }, "loc": { "start": { "line": 141, "column": 28 }, "end": { "line": 146, "column": 6 } } }, "loc": { "start": { "line": 141, "column": 28 }, "end": { "line": 146, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 141, "column": 5 }, "end": { "line": 146, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "map", "decorators": [], "loc": { "start": { "line": 148, "column": 21 }, "end": { "line": 148, "column": 24 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "map", "decorators": [], "loc": { "start": { "line": 148, "column": 21 }, "end": { "line": 148, "column": 24 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "fn", "typeAnnotation": { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "e", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 148, "column": 36 }, "end": { "line": 148, "column": 37 } } }, "loc": { "start": { "line": 148, "column": 36 }, "end": { "line": 148, "column": 38 } } }, "loc": { "start": { "line": 148, "column": 36 }, "end": { "line": 148, "column": 38 } } }, "decorators": [], "loc": { "start": { "line": 148, "column": 33 }, "end": { "line": 148, "column": 38 } } }, "loc": { "start": { "line": 148, "column": 33 }, "end": { "line": 148, "column": 38 } } } ], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 148, "column": 42 }, "end": { "line": 148, "column": 43 } } }, "loc": { "start": { "line": 148, "column": 42 }, "end": { "line": 148, "column": 44 } } }, "loc": { "start": { "line": 148, "column": 42 }, "end": { "line": 148, "column": 44 } } }, "loc": { "start": { "line": 148, "column": 32 }, "end": { "line": 148, "column": 44 } } }, "decorators": [], "loc": { "start": { "line": 148, "column": 28 }, "end": { "line": 148, "column": 44 } } }, "loc": { "start": { "line": 148, "column": 28 }, "end": { "line": 148, "column": 44 } } } ], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Listt", "decorators": [], "loc": { "start": { "line": 148, "column": 46 }, "end": { "line": 148, "column": 51 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 148, "column": 52 }, "end": { "line": 148, "column": 53 } } }, "loc": { "start": { "line": 148, "column": 52 }, "end": { "line": 148, "column": 54 } } }, "loc": { "start": { "line": 148, "column": 52 }, "end": { "line": 148, "column": 54 } } } ], "loc": { "start": { "line": 148, "column": 51 }, "end": { "line": 148, "column": 54 } } }, "loc": { "start": { "line": 148, "column": 46 }, "end": { "line": 148, "column": 56 } } }, "loc": { "start": { "line": 148, "column": 46 }, "end": { "line": 148, "column": 56 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 148, "column": 25 }, "end": { "line": 148, "column": 26 } } }, "loc": { "start": { "line": 148, "column": 25 }, "end": { "line": 148, "column": 27 } } } ], "loc": { "start": { "line": 148, "column": 24 }, "end": { "line": 148, "column": 27 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "res", "decorators": [], "loc": { "start": { "line": 149, "column": 13 }, "end": { "line": 149, "column": 16 } } }, "init": { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "ArrayAsListt", "decorators": [], "loc": { "start": { "line": 149, "column": 23 }, "end": { "line": 149, "column": 35 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 149, "column": 36 }, "end": { "line": 149, "column": 37 } } }, "loc": { "start": { "line": 149, "column": 36 }, "end": { "line": 149, "column": 38 } } }, "loc": { "start": { "line": 149, "column": 36 }, "end": { "line": 149, "column": 38 } } } ], "loc": { "start": { "line": 149, "column": 35 }, "end": { "line": 149, "column": 38 } } }, "loc": { "start": { "line": 149, "column": 23 }, "end": { "line": 149, "column": 39 } } }, "loc": { "start": { "line": 149, "column": 23 }, "end": { "line": 149, "column": 39 } } }, "arguments": [], "loc": { "start": { "line": 149, "column": 19 }, "end": { "line": 149, "column": 41 } } }, "loc": { "start": { "line": 149, "column": 13 }, "end": { "line": 149, "column": 41 } } } ], "kind": "let", "loc": { "start": { "line": 149, "column": 9 }, "end": { "line": 149, "column": 41 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 150, "column": 18 }, "end": { "line": 150, "column": 19 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 150, "column": 22 }, "end": { "line": 150, "column": 23 } } }, "loc": { "start": { "line": 150, "column": 18 }, "end": { "line": 150, "column": 23 } } } ], "kind": "let", "loc": { "start": { "line": 150, "column": 14 }, "end": { "line": 150, "column": 23 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 150, "column": 25 }, "end": { "line": 150, "column": 26 } } }, "right": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 150, "column": 29 }, "end": { "line": 150, "column": 33 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 150, "column": 34 }, "end": { "line": 150, "column": 41 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 150, "column": 29 }, "end": { "line": 150, "column": 41 } } }, "loc": { "start": { "line": 150, "column": 25 }, "end": { "line": 150, "column": 41 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": true, "argument": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 150, "column": 45 }, "end": { "line": 150, "column": 46 } } }, "loc": { "start": { "line": 150, "column": 43 }, "end": { "line": 150, "column": 46 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "res", "decorators": [], "loc": { "start": { "line": 151, "column": 13 }, "end": { "line": 151, "column": 16 } } }, "property": { "type": "Identifier", "name": "pushBack", "decorators": [], "loc": { "start": { "line": 151, "column": 17 }, "end": { "line": 151, "column": 25 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 151, "column": 13 }, "end": { "line": 151, "column": 25 } } }, "arguments": [ { "type": "CallExpression", "callee": { "type": "Identifier", "name": "fn", "decorators": [], "loc": { "start": { "line": 151, "column": 26 }, "end": { "line": 151, "column": 28 } } }, "arguments": [ { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 151, "column": 29 }, "end": { "line": 151, "column": 33 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 151, "column": 34 }, "end": { "line": 151, "column": 38 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 151, "column": 29 }, "end": { "line": 151, "column": 38 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 151, "column": 39 }, "end": { "line": 151, "column": 40 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 151, "column": 29 }, "end": { "line": 151, "column": 41 } } } ], "optional": false, "loc": { "start": { "line": 151, "column": 26 }, "end": { "line": 151, "column": 42 } } } ], "optional": false, "loc": { "start": { "line": 151, "column": 13 }, "end": { "line": 151, "column": 43 } } }, "loc": { "start": { "line": 151, "column": 13 }, "end": { "line": 151, "column": 44 } } } ], "loc": { "start": { "line": 150, "column": 48 }, "end": { "line": 152, "column": 10 } } }, "loc": { "start": { "line": 150, "column": 9 }, "end": { "line": 152, "column": 10 } } }, { "type": "ReturnStatement", "argument": { "type": "Identifier", "name": "res", "decorators": [], "loc": { "start": { "line": 153, "column": 16 }, "end": { "line": 153, "column": 19 } } }, "loc": { "start": { "line": 153, "column": 9 }, "end": { "line": 153, "column": 20 } } } ], "loc": { "start": { "line": 148, "column": 55 }, "end": { "line": 154, "column": 6 } } }, "loc": { "start": { "line": 148, "column": 24 }, "end": { "line": 154, "column": 6 } } }, "loc": { "start": { "line": 148, "column": 24 }, "end": { "line": 154, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 148, "column": 5 }, "end": { "line": 154, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "fold", "decorators": [], "loc": { "start": { "line": 156, "column": 21 }, "end": { "line": 156, "column": 25 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "fold", "decorators": [], "loc": { "start": { "line": 156, "column": 21 }, "end": { "line": 156, "column": 25 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "combine", "typeAnnotation": { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "lhs", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 156, "column": 41 }, "end": { "line": 156, "column": 42 } } }, "loc": { "start": { "line": 156, "column": 41 }, "end": { "line": 156, "column": 43 } } }, "loc": { "start": { "line": 156, "column": 41 }, "end": { "line": 156, "column": 43 } } }, "decorators": [], "loc": { "start": { "line": 156, "column": 36 }, "end": { "line": 156, "column": 43 } } }, "loc": { "start": { "line": 156, "column": 36 }, "end": { "line": 156, "column": 43 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "rhs", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 156, "column": 49 }, "end": { "line": 156, "column": 50 } } }, "loc": { "start": { "line": 156, "column": 49 }, "end": { "line": 156, "column": 51 } } }, "loc": { "start": { "line": 156, "column": 49 }, "end": { "line": 156, "column": 51 } } }, "decorators": [], "loc": { "start": { "line": 156, "column": 44 }, "end": { "line": 156, "column": 51 } } }, "loc": { "start": { "line": 156, "column": 44 }, "end": { "line": 156, "column": 51 } } } ], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 156, "column": 55 }, "end": { "line": 156, "column": 56 } } }, "loc": { "start": { "line": 156, "column": 55 }, "end": { "line": 156, "column": 57 } } }, "loc": { "start": { "line": 156, "column": 55 }, "end": { "line": 156, "column": 57 } } }, "loc": { "start": { "line": 156, "column": 35 }, "end": { "line": 156, "column": 57 } } }, "decorators": [], "loc": { "start": { "line": 156, "column": 26 }, "end": { "line": 156, "column": 57 } } }, "loc": { "start": { "line": 156, "column": 26 }, "end": { "line": 156, "column": 57 } } } ], "returnType": { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 156, "column": 59 }, "end": { "line": 156, "column": 60 } } }, "loc": { "start": { "line": 156, "column": 59 }, "end": { "line": 156, "column": 62 } } }, "loc": { "start": { "line": 156, "column": 59 }, "end": { "line": 156, "column": 62 } } }, { "type": "ETSNullType", "loc": { "start": { "line": 156, "column": 63 }, "end": { "line": 156, "column": 67 } } } ], "loc": { "start": { "line": 156, "column": 59 }, "end": { "line": 156, "column": 67 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": ">", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 157, "column": 13 }, "end": { "line": 157, "column": 17 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 157, "column": 18 }, "end": { "line": 157, "column": 25 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 157, "column": 13 }, "end": { "line": 157, "column": 25 } } }, "right": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 157, "column": 28 }, "end": { "line": 157, "column": 29 } } }, "loc": { "start": { "line": 157, "column": 13 }, "end": { "line": 157, "column": 29 } } }, "consequent": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "res", "decorators": [], "loc": { "start": { "line": 158, "column": 17 }, "end": { "line": 158, "column": 20 } } }, "init": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 158, "column": 23 }, "end": { "line": 158, "column": 27 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 158, "column": 28 }, "end": { "line": 158, "column": 32 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 158, "column": 23 }, "end": { "line": 158, "column": 32 } } }, "property": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 158, "column": 33 }, "end": { "line": 158, "column": 34 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 158, "column": 23 }, "end": { "line": 158, "column": 35 } } }, "loc": { "start": { "line": 158, "column": 17 }, "end": { "line": 158, "column": 35 } } } ], "kind": "let", "loc": { "start": { "line": 158, "column": 13 }, "end": { "line": 158, "column": 36 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 159, "column": 22 }, "end": { "line": 159, "column": 23 } } }, "init": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 159, "column": 26 }, "end": { "line": 159, "column": 27 } } }, "loc": { "start": { "line": 159, "column": 22 }, "end": { "line": 159, "column": 27 } } } ], "kind": "let", "loc": { "start": { "line": 159, "column": 18 }, "end": { "line": 159, "column": 27 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 159, "column": 29 }, "end": { "line": 159, "column": 30 } } }, "right": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 159, "column": 33 }, "end": { "line": 159, "column": 37 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 159, "column": 38 }, "end": { "line": 159, "column": 45 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 159, "column": 33 }, "end": { "line": 159, "column": 45 } } }, "loc": { "start": { "line": 159, "column": 29 }, "end": { "line": 159, "column": 45 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": true, "argument": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 159, "column": 49 }, "end": { "line": 159, "column": 50 } } }, "loc": { "start": { "line": 159, "column": 47 }, "end": { "line": 159, "column": 50 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "res", "decorators": [], "loc": { "start": { "line": 160, "column": 17 }, "end": { "line": 160, "column": 20 } } }, "right": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "combine", "decorators": [], "loc": { "start": { "line": 160, "column": 23 }, "end": { "line": 160, "column": 30 } } }, "arguments": [ { "type": "Identifier", "name": "res", "decorators": [], "loc": { "start": { "line": 160, "column": 31 }, "end": { "line": 160, "column": 34 } } }, { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 160, "column": 36 }, "end": { "line": 160, "column": 40 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 160, "column": 41 }, "end": { "line": 160, "column": 45 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 160, "column": 36 }, "end": { "line": 160, "column": 45 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 160, "column": 46 }, "end": { "line": 160, "column": 47 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 160, "column": 36 }, "end": { "line": 160, "column": 48 } } } ], "optional": false, "loc": { "start": { "line": 160, "column": 23 }, "end": { "line": 160, "column": 49 } } }, "loc": { "start": { "line": 160, "column": 17 }, "end": { "line": 160, "column": 49 } } }, "loc": { "start": { "line": 160, "column": 17 }, "end": { "line": 160, "column": 50 } } } ], "loc": { "start": { "line": 159, "column": 52 }, "end": { "line": 161, "column": 14 } } }, "loc": { "start": { "line": 159, "column": 13 }, "end": { "line": 161, "column": 14 } } }, { "type": "ReturnStatement", "argument": { "type": "Identifier", "name": "res", "decorators": [], "loc": { "start": { "line": 162, "column": 20 }, "end": { "line": 162, "column": 23 } } }, "loc": { "start": { "line": 162, "column": 13 }, "end": { "line": 162, "column": 24 } } } ], "loc": { "start": { "line": 157, "column": 31 }, "end": { "line": 163, "column": 10 } } }, "alternate": null, "loc": { "start": { "line": 157, "column": 9 }, "end": { "line": 163, "column": 10 } } }, { "type": "TryStatement", "block": { "type": "BlockStatement", "statements": [ { "type": "ThrowStatement", "argument": { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "NoDataException", "decorators": [], "loc": { "start": { "line": 165, "column": 19 }, "end": { "line": 165, "column": 34 } } }, "loc": { "start": { "line": 165, "column": 19 }, "end": { "line": 165, "column": 35 } } }, "loc": { "start": { "line": 165, "column": 19 }, "end": { "line": 165, "column": 35 } } }, "arguments": [], "loc": { "start": { "line": 165, "column": 15 }, "end": { "line": 165, "column": 37 } } }, "loc": { "start": { "line": 165, "column": 9 }, "end": { "line": 165, "column": 37 } } } ], "loc": { "start": { "line": 164, "column": 12 }, "end": { "line": 166, "column": 10 } } }, "handler": [ { "type": "CatchClause", "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 166, "column": 20 }, "end": { "line": 166, "column": 22 } } }, "param": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 166, "column": 18 }, "end": { "line": 166, "column": 19 } } }, "loc": { "start": { "line": 166, "column": 11 }, "end": { "line": 166, "column": 22 } } } ], "finalizer": null, "loc": { "start": { "line": 164, "column": 9 }, "end": { "line": 166, "column": 22 } } }, { "type": "ReturnStatement", "argument": { "type": "NullLiteral", "value": null, "loc": { "start": { "line": 167, "column": 16 }, "end": { "line": 167, "column": 20 } } }, "loc": { "start": { "line": 167, "column": 9 }, "end": { "line": 167, "column": 21 } } } ], "loc": { "start": { "line": 156, "column": 68 }, "end": { "line": 168, "column": 6 } } }, "loc": { "start": { "line": 156, "column": 25 }, "end": { "line": 168, "column": 6 } } }, "loc": { "start": { "line": 156, "column": 25 }, "end": { "line": 168, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 156, "column": 5 }, "end": { "line": 168, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "foldWith", "decorators": [], "loc": { "start": { "line": 170, "column": 21 }, "end": { "line": 170, "column": 29 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "foldWith", "decorators": [], "loc": { "start": { "line": 170, "column": 21 }, "end": { "line": 170, "column": 29 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "combine", "typeAnnotation": { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "lhs", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 170, "column": 48 }, "end": { "line": 170, "column": 49 } } }, "loc": { "start": { "line": 170, "column": 48 }, "end": { "line": 170, "column": 50 } } }, "loc": { "start": { "line": 170, "column": 48 }, "end": { "line": 170, "column": 50 } } }, "decorators": [], "loc": { "start": { "line": 170, "column": 43 }, "end": { "line": 170, "column": 50 } } }, "loc": { "start": { "line": 170, "column": 43 }, "end": { "line": 170, "column": 50 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "rhs", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 170, "column": 56 }, "end": { "line": 170, "column": 57 } } }, "loc": { "start": { "line": 170, "column": 56 }, "end": { "line": 170, "column": 58 } } }, "loc": { "start": { "line": 170, "column": 56 }, "end": { "line": 170, "column": 58 } } }, "decorators": [], "loc": { "start": { "line": 170, "column": 51 }, "end": { "line": 170, "column": 58 } } }, "loc": { "start": { "line": 170, "column": 51 }, "end": { "line": 170, "column": 58 } } } ], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 170, "column": 62 }, "end": { "line": 170, "column": 63 } } }, "loc": { "start": { "line": 170, "column": 62 }, "end": { "line": 170, "column": 64 } } }, "loc": { "start": { "line": 170, "column": 62 }, "end": { "line": 170, "column": 64 } } }, "loc": { "start": { "line": 170, "column": 42 }, "end": { "line": 170, "column": 64 } } }, "decorators": [], "loc": { "start": { "line": 170, "column": 33 }, "end": { "line": 170, "column": 64 } } }, "loc": { "start": { "line": 170, "column": 33 }, "end": { "line": 170, "column": 64 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "initVal", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 170, "column": 74 }, "end": { "line": 170, "column": 75 } } }, "loc": { "start": { "line": 170, "column": 74 }, "end": { "line": 170, "column": 76 } } }, "loc": { "start": { "line": 170, "column": 74 }, "end": { "line": 170, "column": 76 } } }, "decorators": [], "loc": { "start": { "line": 170, "column": 65 }, "end": { "line": 170, "column": 76 } } }, "loc": { "start": { "line": 170, "column": 65 }, "end": { "line": 170, "column": 76 } } } ], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 170, "column": 78 }, "end": { "line": 170, "column": 79 } } }, "loc": { "start": { "line": 170, "column": 78 }, "end": { "line": 170, "column": 81 } } }, "loc": { "start": { "line": 170, "column": 78 }, "end": { "line": 170, "column": 81 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "U", "decorators": [], "loc": { "start": { "line": 170, "column": 30 }, "end": { "line": 170, "column": 31 } } }, "loc": { "start": { "line": 170, "column": 30 }, "end": { "line": 170, "column": 32 } } } ], "loc": { "start": { "line": 170, "column": 29 }, "end": { "line": 170, "column": 32 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "res", "decorators": [], "loc": { "start": { "line": 171, "column": 13 }, "end": { "line": 171, "column": 16 } } }, "init": { "type": "Identifier", "name": "initVal", "decorators": [], "loc": { "start": { "line": 171, "column": 19 }, "end": { "line": 171, "column": 26 } } }, "loc": { "start": { "line": 171, "column": 13 }, "end": { "line": 171, "column": 26 } } } ], "kind": "let", "loc": { "start": { "line": 171, "column": 9 }, "end": { "line": 171, "column": 27 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 172, "column": 18 }, "end": { "line": 172, "column": 19 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 172, "column": 22 }, "end": { "line": 172, "column": 23 } } }, "loc": { "start": { "line": 172, "column": 18 }, "end": { "line": 172, "column": 23 } } } ], "kind": "let", "loc": { "start": { "line": 172, "column": 14 }, "end": { "line": 172, "column": 23 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 172, "column": 25 }, "end": { "line": 172, "column": 26 } } }, "right": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 172, "column": 29 }, "end": { "line": 172, "column": 33 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 172, "column": 34 }, "end": { "line": 172, "column": 41 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 172, "column": 29 }, "end": { "line": 172, "column": 41 } } }, "loc": { "start": { "line": 172, "column": 25 }, "end": { "line": 172, "column": 41 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": true, "argument": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 172, "column": 45 }, "end": { "line": 172, "column": 46 } } }, "loc": { "start": { "line": 172, "column": 43 }, "end": { "line": 172, "column": 46 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "res", "decorators": [], "loc": { "start": { "line": 173, "column": 13 }, "end": { "line": 173, "column": 16 } } }, "right": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "combine", "decorators": [], "loc": { "start": { "line": 173, "column": 19 }, "end": { "line": 173, "column": 26 } } }, "arguments": [ { "type": "Identifier", "name": "res", "decorators": [], "loc": { "start": { "line": 173, "column": 27 }, "end": { "line": 173, "column": 30 } } }, { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 173, "column": 32 }, "end": { "line": 173, "column": 36 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 173, "column": 37 }, "end": { "line": 173, "column": 41 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 173, "column": 32 }, "end": { "line": 173, "column": 41 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 173, "column": 42 }, "end": { "line": 173, "column": 43 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 173, "column": 32 }, "end": { "line": 173, "column": 44 } } } ], "optional": false, "loc": { "start": { "line": 173, "column": 19 }, "end": { "line": 173, "column": 45 } } }, "loc": { "start": { "line": 173, "column": 13 }, "end": { "line": 173, "column": 45 } } }, "loc": { "start": { "line": 173, "column": 13 }, "end": { "line": 173, "column": 46 } } } ], "loc": { "start": { "line": 172, "column": 48 }, "end": { "line": 174, "column": 10 } } }, "loc": { "start": { "line": 172, "column": 9 }, "end": { "line": 174, "column": 10 } } }, { "type": "ReturnStatement", "argument": { "type": "Identifier", "name": "res", "decorators": [], "loc": { "start": { "line": 175, "column": 16 }, "end": { "line": 175, "column": 19 } } }, "loc": { "start": { "line": 175, "column": 9 }, "end": { "line": 175, "column": 20 } } } ], "loc": { "start": { "line": 170, "column": 80 }, "end": { "line": 176, "column": 6 } } }, "loc": { "start": { "line": 170, "column": 29 }, "end": { "line": 176, "column": 6 } } }, "loc": { "start": { "line": 170, "column": 29 }, "end": { "line": 176, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 170, "column": 5 }, "end": { "line": 176, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "filter", "decorators": [], "loc": { "start": { "line": 178, "column": 21 }, "end": { "line": 178, "column": 27 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "filter", "decorators": [], "loc": { "start": { "line": 178, "column": 21 }, "end": { "line": 178, "column": 27 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "filterCond", "typeAnnotation": { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "e", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 178, "column": 44 }, "end": { "line": 178, "column": 45 } } }, "loc": { "start": { "line": 178, "column": 44 }, "end": { "line": 178, "column": 46 } } }, "loc": { "start": { "line": 178, "column": 44 }, "end": { "line": 178, "column": 46 } } }, "decorators": [], "loc": { "start": { "line": 178, "column": 41 }, "end": { "line": 178, "column": 46 } } }, "loc": { "start": { "line": 178, "column": 41 }, "end": { "line": 178, "column": 46 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 178, "column": 50 }, "end": { "line": 178, "column": 57 } } }, "loc": { "start": { "line": 178, "column": 40 }, "end": { "line": 178, "column": 57 } } }, "decorators": [], "loc": { "start": { "line": 178, "column": 28 }, "end": { "line": 178, "column": 57 } } }, "loc": { "start": { "line": 178, "column": 28 }, "end": { "line": 178, "column": 57 } } } ], "returnType": { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "ArrayAsListt", "decorators": [], "loc": { "start": { "line": 178, "column": 60 }, "end": { "line": 178, "column": 72 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 178, "column": 73 }, "end": { "line": 178, "column": 74 } } }, "loc": { "start": { "line": 178, "column": 73 }, "end": { "line": 178, "column": 75 } } }, "loc": { "start": { "line": 178, "column": 73 }, "end": { "line": 178, "column": 75 } } } ], "loc": { "start": { "line": 178, "column": 72 }, "end": { "line": 178, "column": 75 } } }, "loc": { "start": { "line": 178, "column": 60 }, "end": { "line": 178, "column": 77 } } }, "loc": { "start": { "line": 178, "column": 60 }, "end": { "line": 178, "column": 77 } } }, { "type": "ETSNullType", "loc": { "start": { "line": 178, "column": 78 }, "end": { "line": 178, "column": 82 } } } ], "loc": { "start": { "line": 178, "column": 60 }, "end": { "line": 178, "column": 82 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "indicators", "decorators": [], "loc": { "start": { "line": 179, "column": 13 }, "end": { "line": 179, "column": 23 } } }, "init": { "type": "ETSNewArrayInstanceExpression", "typeReference": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 179, "column": 30 }, "end": { "line": 179, "column": 37 } } }, "dimension": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 179, "column": 38 }, "end": { "line": 179, "column": 42 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 179, "column": 43 }, "end": { "line": 179, "column": 47 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 179, "column": 38 }, "end": { "line": 179, "column": 47 } } }, "property": { "type": "Identifier", "name": "length", "decorators": [], "loc": { "start": { "line": 179, "column": 48 }, "end": { "line": 179, "column": 54 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 179, "column": 38 }, "end": { "line": 179, "column": 54 } } }, "loc": { "start": { "line": 179, "column": 26 }, "end": { "line": 179, "column": 55 } } }, "loc": { "start": { "line": 179, "column": 13 }, "end": { "line": 179, "column": 55 } } } ], "kind": "let", "loc": { "start": { "line": 179, "column": 9 }, "end": { "line": 179, "column": 56 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "resAmount", "decorators": [], "loc": { "start": { "line": 180, "column": 13 }, "end": { "line": 180, "column": 22 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 180, "column": 25 }, "end": { "line": 180, "column": 26 } } }, "loc": { "start": { "line": 180, "column": 13 }, "end": { "line": 180, "column": 26 } } } ], "kind": "let", "loc": { "start": { "line": 180, "column": 9 }, "end": { "line": 180, "column": 27 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 181, "column": 18 }, "end": { "line": 181, "column": 19 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 181, "column": 22 }, "end": { "line": 181, "column": 23 } } }, "loc": { "start": { "line": 181, "column": 18 }, "end": { "line": 181, "column": 23 } } } ], "kind": "let", "loc": { "start": { "line": 181, "column": 14 }, "end": { "line": 181, "column": 23 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 181, "column": 25 }, "end": { "line": 181, "column": 26 } } }, "right": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 181, "column": 29 }, "end": { "line": 181, "column": 33 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 181, "column": 34 }, "end": { "line": 181, "column": 41 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 181, "column": 29 }, "end": { "line": 181, "column": 41 } } }, "loc": { "start": { "line": 181, "column": 25 }, "end": { "line": 181, "column": 41 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": true, "argument": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 181, "column": 45 }, "end": { "line": 181, "column": 46 } } }, "loc": { "start": { "line": 181, "column": 43 }, "end": { "line": 181, "column": 46 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "indicators", "decorators": [], "loc": { "start": { "line": 182, "column": 13 }, "end": { "line": 182, "column": 23 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 182, "column": 24 }, "end": { "line": 182, "column": 25 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 182, "column": 13 }, "end": { "line": 182, "column": 26 } } }, "right": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "filterCond", "decorators": [], "loc": { "start": { "line": 182, "column": 29 }, "end": { "line": 182, "column": 39 } } }, "arguments": [ { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 182, "column": 40 }, "end": { "line": 182, "column": 44 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 182, "column": 45 }, "end": { "line": 182, "column": 49 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 182, "column": 40 }, "end": { "line": 182, "column": 49 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 182, "column": 50 }, "end": { "line": 182, "column": 51 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 182, "column": 40 }, "end": { "line": 182, "column": 52 } } } ], "optional": false, "loc": { "start": { "line": 182, "column": 29 }, "end": { "line": 182, "column": 53 } } }, "loc": { "start": { "line": 182, "column": 13 }, "end": { "line": 182, "column": 53 } } }, "loc": { "start": { "line": 182, "column": 13 }, "end": { "line": 182, "column": 54 } } }, { "type": "IfStatement", "test": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "indicators", "decorators": [], "loc": { "start": { "line": 183, "column": 17 }, "end": { "line": 183, "column": 27 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 183, "column": 28 }, "end": { "line": 183, "column": 29 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 183, "column": 17 }, "end": { "line": 183, "column": 30 } } }, "consequent": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "UpdateExpression", "operator": "++", "prefix": true, "argument": { "type": "Identifier", "name": "resAmount", "decorators": [], "loc": { "start": { "line": 184, "column": 19 }, "end": { "line": 184, "column": 28 } } }, "loc": { "start": { "line": 184, "column": 17 }, "end": { "line": 184, "column": 28 } } }, "loc": { "start": { "line": 184, "column": 17 }, "end": { "line": 184, "column": 29 } } } ], "loc": { "start": { "line": 183, "column": 32 }, "end": { "line": 185, "column": 14 } } }, "alternate": null, "loc": { "start": { "line": 183, "column": 13 }, "end": { "line": 185, "column": 14 } } } ], "loc": { "start": { "line": 181, "column": 48 }, "end": { "line": 186, "column": 10 } } }, "loc": { "start": { "line": 181, "column": 9 }, "end": { "line": 186, "column": 10 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "res", "decorators": [], "loc": { "start": { "line": 187, "column": 13 }, "end": { "line": 187, "column": 16 } } }, "init": { "type": "ETSNewArrayInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 187, "column": 23 }, "end": { "line": 187, "column": 24 } } }, "loc": { "start": { "line": 187, "column": 23 }, "end": { "line": 187, "column": 25 } } }, "loc": { "start": { "line": 187, "column": 23 }, "end": { "line": 187, "column": 25 } } }, "dimension": { "type": "Identifier", "name": "resAmount", "decorators": [], "loc": { "start": { "line": 187, "column": 25 }, "end": { "line": 187, "column": 34 } } }, "loc": { "start": { "line": 187, "column": 19 }, "end": { "line": 187, "column": 35 } } }, "loc": { "start": { "line": 187, "column": 13 }, "end": { "line": 187, "column": 35 } } } ], "kind": "let", "loc": { "start": { "line": 187, "column": 9 }, "end": { "line": 187, "column": 36 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 188, "column": 18 }, "end": { "line": 188, "column": 19 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 188, "column": 22 }, "end": { "line": 188, "column": 23 } } }, "loc": { "start": { "line": 188, "column": 18 }, "end": { "line": 188, "column": 23 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "j", "decorators": [], "loc": { "start": { "line": 188, "column": 25 }, "end": { "line": 188, "column": 26 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 188, "column": 29 }, "end": { "line": 188, "column": 30 } } }, "loc": { "start": { "line": 188, "column": 25 }, "end": { "line": 188, "column": 30 } } } ], "kind": "let", "loc": { "start": { "line": 188, "column": 14 }, "end": { "line": 188, "column": 30 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 188, "column": 32 }, "end": { "line": 188, "column": 33 } } }, "right": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 188, "column": 36 }, "end": { "line": 188, "column": 40 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 188, "column": 41 }, "end": { "line": 188, "column": 48 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 188, "column": 36 }, "end": { "line": 188, "column": 48 } } }, "loc": { "start": { "line": 188, "column": 32 }, "end": { "line": 188, "column": 48 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": true, "argument": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 188, "column": 52 }, "end": { "line": 188, "column": 53 } } }, "loc": { "start": { "line": 188, "column": 50 }, "end": { "line": 188, "column": 53 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "IfStatement", "test": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "indicators", "decorators": [], "loc": { "start": { "line": 189, "column": 17 }, "end": { "line": 189, "column": 27 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 189, "column": 28 }, "end": { "line": 189, "column": 29 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 189, "column": 17 }, "end": { "line": 189, "column": 30 } } }, "consequent": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "res", "decorators": [], "loc": { "start": { "line": 190, "column": 17 }, "end": { "line": 190, "column": 20 } } }, "property": { "type": "Identifier", "name": "j", "decorators": [], "loc": { "start": { "line": 190, "column": 21 }, "end": { "line": 190, "column": 22 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 190, "column": 17 }, "end": { "line": 190, "column": 23 } } }, "right": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 190, "column": 26 }, "end": { "line": 190, "column": 30 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 190, "column": 31 }, "end": { "line": 190, "column": 35 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 190, "column": 26 }, "end": { "line": 190, "column": 35 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 190, "column": 36 }, "end": { "line": 190, "column": 37 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 190, "column": 26 }, "end": { "line": 190, "column": 38 } } }, "loc": { "start": { "line": 190, "column": 17 }, "end": { "line": 190, "column": 38 } } }, "loc": { "start": { "line": 190, "column": 17 }, "end": { "line": 190, "column": 39 } } }, { "type": "ExpressionStatement", "expression": { "type": "UpdateExpression", "operator": "++", "prefix": true, "argument": { "type": "Identifier", "name": "j", "decorators": [], "loc": { "start": { "line": 191, "column": 19 }, "end": { "line": 191, "column": 20 } } }, "loc": { "start": { "line": 191, "column": 17 }, "end": { "line": 191, "column": 20 } } }, "loc": { "start": { "line": 191, "column": 17 }, "end": { "line": 191, "column": 21 } } } ], "loc": { "start": { "line": 189, "column": 32 }, "end": { "line": 192, "column": 14 } } }, "alternate": null, "loc": { "start": { "line": 189, "column": 13 }, "end": { "line": 192, "column": 14 } } } ], "loc": { "start": { "line": 188, "column": 55 }, "end": { "line": 193, "column": 10 } } }, "loc": { "start": { "line": 188, "column": 9 }, "end": { "line": 193, "column": 10 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 194, "column": 9 }, "end": { "line": 194, "column": 13 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 194, "column": 14 }, "end": { "line": 194, "column": 18 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 194, "column": 9 }, "end": { "line": 194, "column": 18 } } }, "right": { "type": "Identifier", "name": "res", "decorators": [], "loc": { "start": { "line": 194, "column": 21 }, "end": { "line": 194, "column": 24 } } }, "loc": { "start": { "line": 194, "column": 9 }, "end": { "line": 194, "column": 24 } } }, "loc": { "start": { "line": 194, "column": 9 }, "end": { "line": 194, "column": 25 } } }, { "type": "ReturnStatement", "argument": { "type": "NullLiteral", "value": null, "loc": { "start": { "line": 195, "column": 16 }, "end": { "line": 195, "column": 20 } } }, "loc": { "start": { "line": 195, "column": 9 }, "end": { "line": 195, "column": 21 } } } ], "loc": { "start": { "line": 178, "column": 83 }, "end": { "line": 196, "column": 6 } } }, "loc": { "start": { "line": 178, "column": 27 }, "end": { "line": 196, "column": 6 } } }, "loc": { "start": { "line": 178, "column": 27 }, "end": { "line": 196, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 178, "column": 5 }, "end": { "line": 196, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "sort", "decorators": [], "loc": { "start": { "line": 198, "column": 21 }, "end": { "line": 198, "column": 25 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "sort", "decorators": [], "loc": { "start": { "line": 198, "column": 21 }, "end": { "line": 198, "column": 25 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "comparator", "typeAnnotation": { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "lhs", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 198, "column": 44 }, "end": { "line": 198, "column": 45 } } }, "loc": { "start": { "line": 198, "column": 44 }, "end": { "line": 198, "column": 46 } } }, "loc": { "start": { "line": 198, "column": 44 }, "end": { "line": 198, "column": 46 } } }, "decorators": [], "loc": { "start": { "line": 198, "column": 39 }, "end": { "line": 198, "column": 46 } } }, "loc": { "start": { "line": 198, "column": 39 }, "end": { "line": 198, "column": 46 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "rhs", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 198, "column": 52 }, "end": { "line": 198, "column": 53 } } }, "loc": { "start": { "line": 198, "column": 52 }, "end": { "line": 198, "column": 54 } } }, "loc": { "start": { "line": 198, "column": 52 }, "end": { "line": 198, "column": 54 } } }, "decorators": [], "loc": { "start": { "line": 198, "column": 47 }, "end": { "line": 198, "column": 54 } } }, "loc": { "start": { "line": 198, "column": 47 }, "end": { "line": 198, "column": 54 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 198, "column": 58 }, "end": { "line": 198, "column": 65 } } }, "loc": { "start": { "line": 198, "column": 38 }, "end": { "line": 198, "column": 65 } } }, "decorators": [], "loc": { "start": { "line": 198, "column": 26 }, "end": { "line": 198, "column": 65 } } }, "loc": { "start": { "line": 198, "column": 26 }, "end": { "line": 198, "column": 65 } } } ], "returnType": { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "ArrayAsListt", "decorators": [], "loc": { "start": { "line": 198, "column": 68 }, "end": { "line": 198, "column": 80 } } }, "typeParams": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 198, "column": 81 }, "end": { "line": 198, "column": 82 } } }, "loc": { "start": { "line": 198, "column": 81 }, "end": { "line": 198, "column": 83 } } }, "loc": { "start": { "line": 198, "column": 81 }, "end": { "line": 198, "column": 83 } } } ], "loc": { "start": { "line": 198, "column": 80 }, "end": { "line": 198, "column": 83 } } }, "loc": { "start": { "line": 198, "column": 68 }, "end": { "line": 198, "column": 85 } } }, "loc": { "start": { "line": 198, "column": 68 }, "end": { "line": 198, "column": 85 } } }, { "type": "ETSNullType", "loc": { "start": { "line": 198, "column": 86 }, "end": { "line": 198, "column": 90 } } } ], "loc": { "start": { "line": 198, "column": 68 }, "end": { "line": 198, "column": 90 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 199, "column": 9 }, "end": { "line": 199, "column": 13 } } }, "property": { "type": "Identifier", "name": "sortPart", "decorators": [], "loc": { "start": { "line": 199, "column": 14 }, "end": { "line": 199, "column": 22 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 199, "column": 9 }, "end": { "line": 199, "column": 22 } } }, "arguments": [ { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 199, "column": 23 }, "end": { "line": 199, "column": 27 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 199, "column": 28 }, "end": { "line": 199, "column": 32 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 199, "column": 23 }, "end": { "line": 199, "column": 32 } } }, { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 199, "column": 34 }, "end": { "line": 199, "column": 35 } } }, { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 199, "column": 37 }, "end": { "line": 199, "column": 41 } } }, "property": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 199, "column": 42 }, "end": { "line": 199, "column": 49 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 199, "column": 37 }, "end": { "line": 199, "column": 49 } } }, { "type": "Identifier", "name": "comparator", "decorators": [], "loc": { "start": { "line": 199, "column": 51 }, "end": { "line": 199, "column": 61 } } } ], "optional": false, "loc": { "start": { "line": 199, "column": 9 }, "end": { "line": 199, "column": 62 } } }, "loc": { "start": { "line": 199, "column": 9 }, "end": { "line": 199, "column": 63 } } }, { "type": "ReturnStatement", "argument": { "type": "NullLiteral", "value": null, "loc": { "start": { "line": 200, "column": 16 }, "end": { "line": 200, "column": 20 } } }, "loc": { "start": { "line": 200, "column": 9 }, "end": { "line": 200, "column": 21 } } } ], "loc": { "start": { "line": 198, "column": 91 }, "end": { "line": 201, "column": 6 } } }, "loc": { "start": { "line": 198, "column": 25 }, "end": { "line": 201, "column": 6 } } }, "loc": { "start": { "line": 198, "column": 25 }, "end": { "line": 201, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 198, "column": 5 }, "end": { "line": 201, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "sortPart", "decorators": [], "loc": { "start": { "line": 203, "column": 13 }, "end": { "line": 203, "column": 21 } } }, "kind": "method", "accessibility": "private", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "sortPart", "decorators": [], "loc": { "start": { "line": 203, "column": 13 }, "end": { "line": 203, "column": 21 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "arr", "typeAnnotation": { "type": "TSArrayType", "elementType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 203, "column": 27 }, "end": { "line": 203, "column": 28 } } }, "loc": { "start": { "line": 203, "column": 27 }, "end": { "line": 203, "column": 29 } } }, "loc": { "start": { "line": 203, "column": 27 }, "end": { "line": 203, "column": 29 } } }, "loc": { "start": { "line": 203, "column": 30 }, "end": { "line": 203, "column": 31 } } }, "decorators": [], "loc": { "start": { "line": 203, "column": 22 }, "end": { "line": 203, "column": 31 } } }, "loc": { "start": { "line": 203, "column": 22 }, "end": { "line": 203, "column": 31 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "l", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 203, "column": 35 }, "end": { "line": 203, "column": 38 } } }, "decorators": [], "loc": { "start": { "line": 203, "column": 32 }, "end": { "line": 203, "column": 38 } } }, "loc": { "start": { "line": 203, "column": 32 }, "end": { "line": 203, "column": 38 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "r", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 203, "column": 43 }, "end": { "line": 203, "column": 46 } } }, "decorators": [], "loc": { "start": { "line": 203, "column": 40 }, "end": { "line": 203, "column": 46 } } }, "loc": { "start": { "line": 203, "column": 40 }, "end": { "line": 203, "column": 46 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "comparator", "typeAnnotation": { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "lhs", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 203, "column": 66 }, "end": { "line": 203, "column": 67 } } }, "loc": { "start": { "line": 203, "column": 66 }, "end": { "line": 203, "column": 68 } } }, "loc": { "start": { "line": 203, "column": 66 }, "end": { "line": 203, "column": 68 } } }, "decorators": [], "loc": { "start": { "line": 203, "column": 61 }, "end": { "line": 203, "column": 68 } } }, "loc": { "start": { "line": 203, "column": 61 }, "end": { "line": 203, "column": 68 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "rhs", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 203, "column": 74 }, "end": { "line": 203, "column": 75 } } }, "loc": { "start": { "line": 203, "column": 74 }, "end": { "line": 203, "column": 76 } } }, "loc": { "start": { "line": 203, "column": 74 }, "end": { "line": 203, "column": 76 } } }, "decorators": [], "loc": { "start": { "line": 203, "column": 69 }, "end": { "line": 203, "column": 76 } } }, "loc": { "start": { "line": 203, "column": 69 }, "end": { "line": 203, "column": 76 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 203, "column": 80 }, "end": { "line": 203, "column": 87 } } }, "loc": { "start": { "line": 203, "column": 60 }, "end": { "line": 203, "column": 87 } } }, "decorators": [], "loc": { "start": { "line": 203, "column": 48 }, "end": { "line": 203, "column": 87 } } }, "loc": { "start": { "line": 203, "column": 48 }, "end": { "line": 203, "column": 87 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 203, "column": 90 }, "end": { "line": 203, "column": 94 } } }, "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 203, "column": 95 }, "end": { "line": 205, "column": 6 } } }, "loc": { "start": { "line": 203, "column": 21 }, "end": { "line": 205, "column": 6 } } }, "loc": { "start": { "line": 203, "column": 21 }, "end": { "line": 205, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 203, "column": 5 }, "end": { "line": 205, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "partition", "decorators": [], "loc": { "start": { "line": 207, "column": 20 }, "end": { "line": 207, "column": 29 } } }, "kind": "method", "accessibility": "private", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "partition", "decorators": [], "loc": { "start": { "line": 207, "column": 20 }, "end": { "line": 207, "column": 29 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "arr", "typeAnnotation": { "type": "TSArrayType", "elementType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 207, "column": 35 }, "end": { "line": 207, "column": 36 } } }, "loc": { "start": { "line": 207, "column": 35 }, "end": { "line": 207, "column": 37 } } }, "loc": { "start": { "line": 207, "column": 35 }, "end": { "line": 207, "column": 37 } } }, "loc": { "start": { "line": 207, "column": 38 }, "end": { "line": 207, "column": 39 } } }, "decorators": [], "loc": { "start": { "line": 207, "column": 30 }, "end": { "line": 207, "column": 39 } } }, "loc": { "start": { "line": 207, "column": 30 }, "end": { "line": 207, "column": 39 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "l", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 207, "column": 43 }, "end": { "line": 207, "column": 46 } } }, "decorators": [], "loc": { "start": { "line": 207, "column": 40 }, "end": { "line": 207, "column": 46 } } }, "loc": { "start": { "line": 207, "column": 40 }, "end": { "line": 207, "column": 46 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "r", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 207, "column": 51 }, "end": { "line": 207, "column": 54 } } }, "decorators": [], "loc": { "start": { "line": 207, "column": 48 }, "end": { "line": 207, "column": 54 } } }, "loc": { "start": { "line": 207, "column": 48 }, "end": { "line": 207, "column": 54 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "comparator", "typeAnnotation": { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "lhs", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 207, "column": 74 }, "end": { "line": 207, "column": 75 } } }, "loc": { "start": { "line": 207, "column": 74 }, "end": { "line": 207, "column": 76 } } }, "loc": { "start": { "line": 207, "column": 74 }, "end": { "line": 207, "column": 76 } } }, "decorators": [], "loc": { "start": { "line": 207, "column": 69 }, "end": { "line": 207, "column": 76 } } }, "loc": { "start": { "line": 207, "column": 69 }, "end": { "line": 207, "column": 76 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "rhs", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 207, "column": 82 }, "end": { "line": 207, "column": 83 } } }, "loc": { "start": { "line": 207, "column": 82 }, "end": { "line": 207, "column": 84 } } }, "loc": { "start": { "line": 207, "column": 82 }, "end": { "line": 207, "column": 84 } } }, "decorators": [], "loc": { "start": { "line": 207, "column": 77 }, "end": { "line": 207, "column": 84 } } }, "loc": { "start": { "line": 207, "column": 77 }, "end": { "line": 207, "column": 84 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 207, "column": 88 }, "end": { "line": 207, "column": 95 } } }, "loc": { "start": { "line": 207, "column": 68 }, "end": { "line": 207, "column": 95 } } }, "decorators": [], "loc": { "start": { "line": 207, "column": 56 }, "end": { "line": 207, "column": 95 } } }, "loc": { "start": { "line": 207, "column": 56 }, "end": { "line": 207, "column": 95 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 207, "column": 98 }, "end": { "line": 207, "column": 101 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "last", "decorators": [], "loc": { "start": { "line": 208, "column": 13 }, "end": { "line": 208, "column": 17 } } }, "init": { "type": "BinaryExpression", "operator": "-", "left": { "type": "Identifier", "name": "r", "decorators": [], "loc": { "start": { "line": 208, "column": 20 }, "end": { "line": 208, "column": 21 } } }, "right": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 208, "column": 24 }, "end": { "line": 208, "column": 25 } } }, "loc": { "start": { "line": 208, "column": 20 }, "end": { "line": 208, "column": 25 } } }, "loc": { "start": { "line": 208, "column": 13 }, "end": { "line": 208, "column": 25 } } } ], "kind": "let", "loc": { "start": { "line": 208, "column": 9 }, "end": { "line": 208, "column": 26 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "pivot", "decorators": [], "loc": { "start": { "line": 209, "column": 13 }, "end": { "line": 209, "column": 18 } } }, "init": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arr", "decorators": [], "loc": { "start": { "line": 209, "column": 21 }, "end": { "line": 209, "column": 24 } } }, "property": { "type": "Identifier", "name": "last", "decorators": [], "loc": { "start": { "line": 209, "column": 25 }, "end": { "line": 209, "column": 29 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 209, "column": 21 }, "end": { "line": 209, "column": 30 } } }, "loc": { "start": { "line": 209, "column": 13 }, "end": { "line": 209, "column": 30 } } } ], "kind": "let", "loc": { "start": { "line": 209, "column": 9 }, "end": { "line": 209, "column": 31 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "lessInd", "decorators": [], "loc": { "start": { "line": 210, "column": 13 }, "end": { "line": 210, "column": 20 } } }, "init": { "type": "BinaryExpression", "operator": "-", "left": { "type": "Identifier", "name": "l", "decorators": [], "loc": { "start": { "line": 210, "column": 23 }, "end": { "line": 210, "column": 24 } } }, "right": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 210, "column": 27 }, "end": { "line": 210, "column": 28 } } }, "loc": { "start": { "line": 210, "column": 23 }, "end": { "line": 210, "column": 28 } } }, "loc": { "start": { "line": 210, "column": 13 }, "end": { "line": 210, "column": 28 } } } ], "kind": "let", "loc": { "start": { "line": 210, "column": 9 }, "end": { "line": 210, "column": 29 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 211, "column": 18 }, "end": { "line": 211, "column": 19 } } }, "init": { "type": "Identifier", "name": "l", "decorators": [], "loc": { "start": { "line": 211, "column": 22 }, "end": { "line": 211, "column": 23 } } }, "loc": { "start": { "line": 211, "column": 18 }, "end": { "line": 211, "column": 23 } } } ], "kind": "let", "loc": { "start": { "line": 211, "column": 14 }, "end": { "line": 211, "column": 23 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 211, "column": 25 }, "end": { "line": 211, "column": 26 } } }, "right": { "type": "Identifier", "name": "last", "decorators": [], "loc": { "start": { "line": 211, "column": 29 }, "end": { "line": 211, "column": 33 } } }, "loc": { "start": { "line": 211, "column": 25 }, "end": { "line": 211, "column": 33 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": true, "argument": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 211, "column": 37 }, "end": { "line": 211, "column": 38 } } }, "loc": { "start": { "line": 211, "column": 35 }, "end": { "line": 211, "column": 38 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "IfStatement", "test": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "comparator", "decorators": [], "loc": { "start": { "line": 212, "column": 17 }, "end": { "line": 212, "column": 27 } } }, "arguments": [ { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arr", "decorators": [], "loc": { "start": { "line": 212, "column": 28 }, "end": { "line": 212, "column": 31 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 212, "column": 32 }, "end": { "line": 212, "column": 33 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 212, "column": 28 }, "end": { "line": 212, "column": 34 } } }, { "type": "Identifier", "name": "pivot", "decorators": [], "loc": { "start": { "line": 212, "column": 36 }, "end": { "line": 212, "column": 41 } } } ], "optional": false, "loc": { "start": { "line": 212, "column": 17 }, "end": { "line": 212, "column": 42 } } }, "consequent": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "UpdateExpression", "operator": "++", "prefix": true, "argument": { "type": "Identifier", "name": "lessInd", "decorators": [], "loc": { "start": { "line": 213, "column": 19 }, "end": { "line": 213, "column": 26 } } }, "loc": { "start": { "line": 213, "column": 17 }, "end": { "line": 213, "column": 26 } } }, "loc": { "start": { "line": 213, "column": 17 }, "end": { "line": 213, "column": 27 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "tmp", "decorators": [], "loc": { "start": { "line": 214, "column": 21 }, "end": { "line": 214, "column": 24 } } }, "init": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arr", "decorators": [], "loc": { "start": { "line": 214, "column": 27 }, "end": { "line": 214, "column": 30 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 214, "column": 31 }, "end": { "line": 214, "column": 32 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 214, "column": 27 }, "end": { "line": 214, "column": 33 } } }, "loc": { "start": { "line": 214, "column": 21 }, "end": { "line": 214, "column": 33 } } } ], "kind": "let", "loc": { "start": { "line": 214, "column": 17 }, "end": { "line": 214, "column": 34 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arr", "decorators": [], "loc": { "start": { "line": 215, "column": 17 }, "end": { "line": 215, "column": 20 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 215, "column": 21 }, "end": { "line": 215, "column": 22 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 215, "column": 17 }, "end": { "line": 215, "column": 23 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arr", "decorators": [], "loc": { "start": { "line": 215, "column": 26 }, "end": { "line": 215, "column": 29 } } }, "property": { "type": "Identifier", "name": "lessInd", "decorators": [], "loc": { "start": { "line": 215, "column": 30 }, "end": { "line": 215, "column": 37 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 215, "column": 26 }, "end": { "line": 215, "column": 38 } } }, "loc": { "start": { "line": 215, "column": 17 }, "end": { "line": 215, "column": 38 } } }, "loc": { "start": { "line": 215, "column": 17 }, "end": { "line": 215, "column": 39 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arr", "decorators": [], "loc": { "start": { "line": 216, "column": 17 }, "end": { "line": 216, "column": 20 } } }, "property": { "type": "Identifier", "name": "lessInd", "decorators": [], "loc": { "start": { "line": 216, "column": 21 }, "end": { "line": 216, "column": 28 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 216, "column": 17 }, "end": { "line": 216, "column": 29 } } }, "right": { "type": "Identifier", "name": "tmp", "decorators": [], "loc": { "start": { "line": 216, "column": 32 }, "end": { "line": 216, "column": 35 } } }, "loc": { "start": { "line": 216, "column": 17 }, "end": { "line": 216, "column": 35 } } }, "loc": { "start": { "line": 216, "column": 17 }, "end": { "line": 216, "column": 36 } } } ], "loc": { "start": { "line": 212, "column": 44 }, "end": { "line": 217, "column": 14 } } }, "alternate": null, "loc": { "start": { "line": 212, "column": 13 }, "end": { "line": 217, "column": 14 } } } ], "loc": { "start": { "line": 211, "column": 40 }, "end": { "line": 218, "column": 10 } } }, "loc": { "start": { "line": 211, "column": 9 }, "end": { "line": 218, "column": 10 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "tmp", "decorators": [], "loc": { "start": { "line": 219, "column": 13 }, "end": { "line": 219, "column": 16 } } }, "init": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arr", "decorators": [], "loc": { "start": { "line": 219, "column": 19 }, "end": { "line": 219, "column": 22 } } }, "property": { "type": "BinaryExpression", "operator": "+", "left": { "type": "Identifier", "name": "lessInd", "decorators": [], "loc": { "start": { "line": 219, "column": 23 }, "end": { "line": 219, "column": 30 } } }, "right": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 219, "column": 33 }, "end": { "line": 219, "column": 34 } } }, "loc": { "start": { "line": 219, "column": 23 }, "end": { "line": 219, "column": 34 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 219, "column": 19 }, "end": { "line": 219, "column": 35 } } }, "loc": { "start": { "line": 219, "column": 13 }, "end": { "line": 219, "column": 35 } } } ], "kind": "let", "loc": { "start": { "line": 219, "column": 9 }, "end": { "line": 219, "column": 36 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arr", "decorators": [], "loc": { "start": { "line": 220, "column": 9 }, "end": { "line": 220, "column": 12 } } }, "property": { "type": "BinaryExpression", "operator": "+", "left": { "type": "Identifier", "name": "lessInd", "decorators": [], "loc": { "start": { "line": 220, "column": 13 }, "end": { "line": 220, "column": 20 } } }, "right": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 220, "column": 23 }, "end": { "line": 220, "column": 24 } } }, "loc": { "start": { "line": 220, "column": 13 }, "end": { "line": 220, "column": 24 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 220, "column": 9 }, "end": { "line": 220, "column": 25 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arr", "decorators": [], "loc": { "start": { "line": 220, "column": 28 }, "end": { "line": 220, "column": 31 } } }, "property": { "type": "Identifier", "name": "last", "decorators": [], "loc": { "start": { "line": 220, "column": 32 }, "end": { "line": 220, "column": 36 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 220, "column": 28 }, "end": { "line": 220, "column": 37 } } }, "loc": { "start": { "line": 220, "column": 9 }, "end": { "line": 220, "column": 37 } } }, "loc": { "start": { "line": 220, "column": 9 }, "end": { "line": 220, "column": 38 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arr", "decorators": [], "loc": { "start": { "line": 221, "column": 9 }, "end": { "line": 221, "column": 12 } } }, "property": { "type": "Identifier", "name": "last", "decorators": [], "loc": { "start": { "line": 221, "column": 13 }, "end": { "line": 221, "column": 17 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 221, "column": 9 }, "end": { "line": 221, "column": 18 } } }, "right": { "type": "Identifier", "name": "tmp", "decorators": [], "loc": { "start": { "line": 221, "column": 21 }, "end": { "line": 221, "column": 24 } } }, "loc": { "start": { "line": 221, "column": 9 }, "end": { "line": 221, "column": 24 } } }, "loc": { "start": { "line": 221, "column": 9 }, "end": { "line": 221, "column": 25 } } }, { "type": "ReturnStatement", "argument": { "type": "BinaryExpression", "operator": "+", "left": { "type": "Identifier", "name": "lessInd", "decorators": [], "loc": { "start": { "line": 222, "column": 16 }, "end": { "line": 222, "column": 23 } } }, "right": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 222, "column": 26 }, "end": { "line": 222, "column": 27 } } }, "loc": { "start": { "line": 222, "column": 16 }, "end": { "line": 222, "column": 27 } } }, "loc": { "start": { "line": 222, "column": 9 }, "end": { "line": 222, "column": 28 } } } ], "loc": { "start": { "line": 207, "column": 102 }, "end": { "line": 223, "column": 6 } } }, "loc": { "start": { "line": 207, "column": 29 }, "end": { "line": 223, "column": 6 } } }, "loc": { "start": { "line": 207, "column": 29 }, "end": { "line": 223, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 207, "column": 5 }, "end": { "line": 223, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "bubbleSort", "decorators": [], "loc": { "start": { "line": 225, "column": 20 }, "end": { "line": 225, "column": 30 } } }, "kind": "method", "accessibility": "private", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "bubbleSort", "decorators": [], "loc": { "start": { "line": 225, "column": 20 }, "end": { "line": 225, "column": 30 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "arr", "typeAnnotation": { "type": "TSArrayType", "elementType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 225, "column": 36 }, "end": { "line": 225, "column": 37 } } }, "loc": { "start": { "line": 225, "column": 36 }, "end": { "line": 225, "column": 38 } } }, "loc": { "start": { "line": 225, "column": 36 }, "end": { "line": 225, "column": 38 } } }, "loc": { "start": { "line": 225, "column": 39 }, "end": { "line": 225, "column": 40 } } }, "decorators": [], "loc": { "start": { "line": 225, "column": 31 }, "end": { "line": 225, "column": 40 } } }, "loc": { "start": { "line": 225, "column": 31 }, "end": { "line": 225, "column": 40 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "l", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 225, "column": 44 }, "end": { "line": 225, "column": 47 } } }, "decorators": [], "loc": { "start": { "line": 225, "column": 41 }, "end": { "line": 225, "column": 47 } } }, "loc": { "start": { "line": 225, "column": 41 }, "end": { "line": 225, "column": 47 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "r", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 225, "column": 52 }, "end": { "line": 225, "column": 55 } } }, "decorators": [], "loc": { "start": { "line": 225, "column": 49 }, "end": { "line": 225, "column": 55 } } }, "loc": { "start": { "line": 225, "column": 49 }, "end": { "line": 225, "column": 55 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "comparator", "typeAnnotation": { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "lhs", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 225, "column": 75 }, "end": { "line": 225, "column": 76 } } }, "loc": { "start": { "line": 225, "column": 75 }, "end": { "line": 225, "column": 77 } } }, "loc": { "start": { "line": 225, "column": 75 }, "end": { "line": 225, "column": 77 } } }, "decorators": [], "loc": { "start": { "line": 225, "column": 70 }, "end": { "line": 225, "column": 77 } } }, "loc": { "start": { "line": 225, "column": 70 }, "end": { "line": 225, "column": 77 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "rhs", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 225, "column": 83 }, "end": { "line": 225, "column": 84 } } }, "loc": { "start": { "line": 225, "column": 83 }, "end": { "line": 225, "column": 85 } } }, "loc": { "start": { "line": 225, "column": 83 }, "end": { "line": 225, "column": 85 } } }, "decorators": [], "loc": { "start": { "line": 225, "column": 78 }, "end": { "line": 225, "column": 85 } } }, "loc": { "start": { "line": 225, "column": 78 }, "end": { "line": 225, "column": 85 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 225, "column": 89 }, "end": { "line": 225, "column": 96 } } }, "loc": { "start": { "line": 225, "column": 69 }, "end": { "line": 225, "column": 96 } } }, "decorators": [], "loc": { "start": { "line": 225, "column": 57 }, "end": { "line": 225, "column": 96 } } }, "loc": { "start": { "line": 225, "column": 57 }, "end": { "line": 225, "column": 96 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 225, "column": 99 }, "end": { "line": 225, "column": 103 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 226, "column": 18 }, "end": { "line": 226, "column": 19 } } }, "init": { "type": "Identifier", "name": "l", "decorators": [], "loc": { "start": { "line": 226, "column": 22 }, "end": { "line": 226, "column": 23 } } }, "loc": { "start": { "line": 226, "column": 18 }, "end": { "line": 226, "column": 23 } } } ], "kind": "let", "loc": { "start": { "line": 226, "column": 14 }, "end": { "line": 226, "column": 23 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 226, "column": 25 }, "end": { "line": 226, "column": 26 } } }, "right": { "type": "Identifier", "name": "r", "decorators": [], "loc": { "start": { "line": 226, "column": 29 }, "end": { "line": 226, "column": 30 } } }, "loc": { "start": { "line": 226, "column": 25 }, "end": { "line": 226, "column": 30 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": true, "argument": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 226, "column": 34 }, "end": { "line": 226, "column": 35 } } }, "loc": { "start": { "line": 226, "column": 32 }, "end": { "line": 226, "column": 35 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "j", "decorators": [], "loc": { "start": { "line": 227, "column": 22 }, "end": { "line": 227, "column": 23 } } }, "init": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 227, "column": 26 }, "end": { "line": 227, "column": 27 } } }, "loc": { "start": { "line": 227, "column": 22 }, "end": { "line": 227, "column": 27 } } } ], "kind": "let", "loc": { "start": { "line": 227, "column": 18 }, "end": { "line": 227, "column": 27 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "j", "decorators": [], "loc": { "start": { "line": 227, "column": 29 }, "end": { "line": 227, "column": 30 } } }, "right": { "type": "BinaryExpression", "operator": "-", "left": { "type": "Identifier", "name": "r", "decorators": [], "loc": { "start": { "line": 227, "column": 33 }, "end": { "line": 227, "column": 34 } } }, "right": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 227, "column": 37 }, "end": { "line": 227, "column": 38 } } }, "loc": { "start": { "line": 227, "column": 33 }, "end": { "line": 227, "column": 38 } } }, "loc": { "start": { "line": 227, "column": 29 }, "end": { "line": 227, "column": 38 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": true, "argument": { "type": "Identifier", "name": "j", "decorators": [], "loc": { "start": { "line": 227, "column": 42 }, "end": { "line": 227, "column": 43 } } }, "loc": { "start": { "line": 227, "column": 40 }, "end": { "line": 227, "column": 43 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "IfStatement", "test": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "comparator", "decorators": [], "loc": { "start": { "line": 228, "column": 21 }, "end": { "line": 228, "column": 31 } } }, "arguments": [ { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arr", "decorators": [], "loc": { "start": { "line": 228, "column": 32 }, "end": { "line": 228, "column": 35 } } }, "property": { "type": "BinaryExpression", "operator": "+", "left": { "type": "Identifier", "name": "j", "decorators": [], "loc": { "start": { "line": 228, "column": 36 }, "end": { "line": 228, "column": 37 } } }, "right": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 228, "column": 40 }, "end": { "line": 228, "column": 41 } } }, "loc": { "start": { "line": 228, "column": 36 }, "end": { "line": 228, "column": 41 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 228, "column": 32 }, "end": { "line": 228, "column": 42 } } }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arr", "decorators": [], "loc": { "start": { "line": 228, "column": 44 }, "end": { "line": 228, "column": 47 } } }, "property": { "type": "Identifier", "name": "j", "decorators": [], "loc": { "start": { "line": 228, "column": 48 }, "end": { "line": 228, "column": 49 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 228, "column": 44 }, "end": { "line": 228, "column": 50 } } } ], "optional": false, "loc": { "start": { "line": 228, "column": 21 }, "end": { "line": 228, "column": 51 } } }, "consequent": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "tmp", "decorators": [], "loc": { "start": { "line": 229, "column": 25 }, "end": { "line": 229, "column": 28 } } }, "init": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arr", "decorators": [], "loc": { "start": { "line": 229, "column": 31 }, "end": { "line": 229, "column": 34 } } }, "property": { "type": "BinaryExpression", "operator": "+", "left": { "type": "Identifier", "name": "j", "decorators": [], "loc": { "start": { "line": 229, "column": 35 }, "end": { "line": 229, "column": 36 } } }, "right": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 229, "column": 39 }, "end": { "line": 229, "column": 40 } } }, "loc": { "start": { "line": 229, "column": 35 }, "end": { "line": 229, "column": 40 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 229, "column": 31 }, "end": { "line": 229, "column": 41 } } }, "loc": { "start": { "line": 229, "column": 25 }, "end": { "line": 229, "column": 41 } } } ], "kind": "let", "loc": { "start": { "line": 229, "column": 21 }, "end": { "line": 229, "column": 42 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arr", "decorators": [], "loc": { "start": { "line": 230, "column": 21 }, "end": { "line": 230, "column": 24 } } }, "property": { "type": "BinaryExpression", "operator": "+", "left": { "type": "Identifier", "name": "j", "decorators": [], "loc": { "start": { "line": 230, "column": 25 }, "end": { "line": 230, "column": 26 } } }, "right": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 230, "column": 29 }, "end": { "line": 230, "column": 30 } } }, "loc": { "start": { "line": 230, "column": 25 }, "end": { "line": 230, "column": 30 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 230, "column": 21 }, "end": { "line": 230, "column": 31 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arr", "decorators": [], "loc": { "start": { "line": 230, "column": 34 }, "end": { "line": 230, "column": 37 } } }, "property": { "type": "Identifier", "name": "j", "decorators": [], "loc": { "start": { "line": 230, "column": 38 }, "end": { "line": 230, "column": 39 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 230, "column": 34 }, "end": { "line": 230, "column": 40 } } }, "loc": { "start": { "line": 230, "column": 21 }, "end": { "line": 230, "column": 40 } } }, "loc": { "start": { "line": 230, "column": 21 }, "end": { "line": 230, "column": 41 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arr", "decorators": [], "loc": { "start": { "line": 231, "column": 21 }, "end": { "line": 231, "column": 24 } } }, "property": { "type": "Identifier", "name": "j", "decorators": [], "loc": { "start": { "line": 231, "column": 25 }, "end": { "line": 231, "column": 26 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 231, "column": 21 }, "end": { "line": 231, "column": 27 } } }, "right": { "type": "Identifier", "name": "tmp", "decorators": [], "loc": { "start": { "line": 231, "column": 30 }, "end": { "line": 231, "column": 33 } } }, "loc": { "start": { "line": 231, "column": 21 }, "end": { "line": 231, "column": 33 } } }, "loc": { "start": { "line": 231, "column": 21 }, "end": { "line": 231, "column": 34 } } } ], "loc": { "start": { "line": 228, "column": 53 }, "end": { "line": 232, "column": 18 } } }, "alternate": null, "loc": { "start": { "line": 228, "column": 17 }, "end": { "line": 232, "column": 18 } } } ], "loc": { "start": { "line": 227, "column": 45 }, "end": { "line": 233, "column": 14 } } }, "loc": { "start": { "line": 227, "column": 13 }, "end": { "line": 233, "column": 14 } } } ], "loc": { "start": { "line": 226, "column": 37 }, "end": { "line": 234, "column": 10 } } }, "loc": { "start": { "line": 226, "column": 9 }, "end": { "line": 234, "column": 10 } } } ], "loc": { "start": { "line": 225, "column": 104 }, "end": { "line": 235, "column": 6 } } }, "loc": { "start": { "line": 225, "column": 30 }, "end": { "line": 235, "column": 6 } } }, "loc": { "start": { "line": 225, "column": 30 }, "end": { "line": 235, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 225, "column": 5 }, "end": { "line": 235, "column": 6 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 238, "column": 13 }, "end": { "line": 238, "column": 17 } } }, "value": { "type": "ArrayExpression", "elements": [], "loc": { "start": { "line": 238, "column": 25 }, "end": { "line": 238, "column": 27 } } }, "accessibility": "private", "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "TSArrayType", "elementType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 238, "column": 19 }, "end": { "line": 238, "column": 20 } } }, "loc": { "start": { "line": 238, "column": 19 }, "end": { "line": 238, "column": 21 } } }, "loc": { "start": { "line": 238, "column": 19 }, "end": { "line": 238, "column": 21 } } }, "loc": { "start": { "line": 238, "column": 23 }, "end": { "line": 238, "column": 24 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 238, "column": 13 }, "end": { "line": 238, "column": 27 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "curSize", "decorators": [], "loc": { "start": { "line": 239, "column": 13 }, "end": { "line": 239, "column": 20 } } }, "accessibility": "private", "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 239, "column": 22 }, "end": { "line": 239, "column": 25 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 239, "column": 13 }, "end": { "line": 239, "column": 25 } } } ], "loc": { "start": { "line": 37, "column": 43 }, "end": { "line": 240, "column": 2 } } }, "loc": { "start": { "line": 37, "column": 1 }, "end": { "line": 240, "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": 241, "column": 1 } } }