{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "ETSGLOBAL", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "superClass": null, "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "_$init$_", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "_$init$_", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "copyWithin", "decorators": [], "loc": { "start": { "line": 16, "column": 17 }, "end": { "line": 16, "column": 27 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "copyWithin", "decorators": [], "loc": { "start": { "line": 16, "column": 17 }, "end": { "line": 16, "column": 27 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "self", "typeAnnotation": { "type": "TSArrayType", "elementType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 16, "column": 37 }, "end": { "line": 16, "column": 38 } } }, "loc": { "start": { "line": 16, "column": 37 }, "end": { "line": 16, "column": 39 } } }, "loc": { "start": { "line": 16, "column": 37 }, "end": { "line": 16, "column": 39 } } }, "loc": { "start": { "line": 16, "column": 40 }, "end": { "line": 16, "column": 41 } } }, "decorators": [], "loc": { "start": { "line": 16, "column": 31 }, "end": { "line": 16, "column": 41 } } }, "loc": { "start": { "line": 16, "column": 31 }, "end": { "line": 16, "column": 41 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "end", "typeAnnotation": { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Number", "decorators": [], "loc": { "start": { "line": 16, "column": 48 }, "end": { "line": 16, "column": 54 } } }, "loc": { "start": { "line": 16, "column": 48 }, "end": { "line": 16, "column": 55 } } }, "loc": { "start": { "line": 16, "column": 48 }, "end": { "line": 16, "column": 55 } } }, { "type": "ETSUndefinedType", "loc": { "start": { "line": 16, "column": 45 }, "end": { "line": 16, "column": 46 } } } ], "loc": { "start": { "line": 16, "column": 48 }, "end": { "line": 16, "column": 55 } } }, "decorators": [], "loc": { "start": { "line": 16, "column": 42 }, "end": { "line": 16, "column": 55 } } }, "loc": { "start": { "line": 16, "column": 42 }, "end": { "line": 16, "column": 55 } } } ], "returnType": { "type": "TSArrayType", "elementType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 16, "column": 57 }, "end": { "line": 16, "column": 58 } } }, "loc": { "start": { "line": 16, "column": 57 }, "end": { "line": 16, "column": 59 } } }, "loc": { "start": { "line": 16, "column": 57 }, "end": { "line": 16, "column": 59 } } }, "loc": { "start": { "line": 16, "column": 61 }, "end": { "line": 16, "column": 62 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 16, "column": 28 }, "end": { "line": 16, "column": 29 } } }, "loc": { "start": { "line": 16, "column": 28 }, "end": { "line": 16, "column": 30 } } } ], "loc": { "start": { "line": 16, "column": 27 }, "end": { "line": 16, "column": 30 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "Identifier", "name": "self", "decorators": [], "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 16 } } }, "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 17 } } } ], "loc": { "start": { "line": 16, "column": 61 }, "end": { "line": 18, "column": 2 } } }, "loc": { "start": { "line": 16, "column": 27 }, "end": { "line": 18, "column": 2 } } }, "loc": { "start": { "line": 16, "column": 27 }, "end": { "line": 18, "column": 2 } } }, "overloads": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "copyWithin", "decorators": [], "loc": { "start": { "line": 16, "column": 17 }, "end": { "line": 16, "column": 27 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "copyWithin", "decorators": [], "loc": { "start": { "line": 16, "column": 17 }, "end": { "line": 16, "column": 27 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "self", "typeAnnotation": { "type": "TSArrayType", "elementType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 16, "column": 37 }, "end": { "line": 16, "column": 38 } } }, "loc": { "start": { "line": 16, "column": 37 }, "end": { "line": 16, "column": 39 } } }, "loc": { "start": { "line": 16, "column": 37 }, "end": { "line": 16, "column": 39 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "decorators": [], "loc": { "start": { "line": 16, "column": 31 }, "end": { "line": 16, "column": 41 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "returnType": { "type": "TSArrayType", "elementType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 16, "column": 57 }, "end": { "line": 16, "column": 58 } } }, "loc": { "start": { "line": 16, "column": 57 }, "end": { "line": 16, "column": 59 } } }, "loc": { "start": { "line": 16, "column": 57 }, "end": { "line": 16, "column": 59 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 16, "column": 28 }, "end": { "line": 16, "column": 29 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "copyWithin", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "arguments": [ { "type": "Identifier", "name": "self", "typeAnnotation": { "type": "TSArrayType", "elementType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 16, "column": 37 }, "end": { "line": 16, "column": 38 } } }, "loc": { "start": { "line": 16, "column": 37 }, "end": { "line": 16, "column": 39 } } }, "loc": { "start": { "line": 16, "column": 37 }, "end": { "line": 16, "column": 39 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "decorators": [], "loc": { "start": { "line": 16, "column": 31 }, "end": { "line": 16, "column": 41 } } }, { "type": "UndefinedLiteral", "value": undefined, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "optional": false, "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 18, "column": 2 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 613, "column": 1 }, "end": { "line": 613, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 1, "column": 1 } } } ], "decorators": [], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 18, "column": 2 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 19, "column": 1 } } }