{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "A", "decorators": [], "loc": { "start": { "line": 16, "column": 7 }, "end": { "line": 16, "column": 8 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "T", "decorators": [], "loc": { "start": { "line": 16, "column": 9 }, "end": { "line": 16, "column": 10 } } }, "constraint": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Object", "decorators": [], "loc": { "start": { "line": 16, "column": 19 }, "end": { "line": 16, "column": 25 } } }, "loc": { "start": { "line": 16, "column": 19 }, "end": { "line": 16, "column": 26 } } }, "loc": { "start": { "line": 16, "column": 19 }, "end": { "line": 16, "column": 26 } } }, "loc": { "start": { "line": 16, "column": 9 }, "end": { "line": 16, "column": 26 } } } ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 26 } } }, "superClass": null, "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "foo", "decorators": [], "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 15 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "foo", "decorators": [], "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 15 } } }, "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": 17, "column": 19 }, "end": { "line": 17, "column": 20 } } }, "loc": { "start": { "line": 17, "column": 19 }, "end": { "line": 17, "column": 21 } } }, "loc": { "start": { "line": 17, "column": 19 }, "end": { "line": 17, "column": 21 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 16 }, "end": { "line": 17, "column": 21 } } }, "loc": { "start": { "line": 17, "column": 16 }, "end": { "line": 17, "column": 21 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 17, "column": 23 }, "end": { "line": 17, "column": 27 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "BinaryExpression", "operator": "==", "left": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 13 } } }, "property": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 18, "column": 14 }, "end": { "line": 18, "column": 18 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 18 } } }, "property": { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 18, "column": 19 }, "end": { "line": 18, "column": 20 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 21 } } }, "right": { "type": "Identifier", "name": "e", "decorators": [], "loc": { "start": { "line": 18, "column": 25 }, "end": { "line": 18, "column": 26 } } }, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 26 } } }, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 27 } } } ], "loc": { "start": { "line": 17, "column": 28 }, "end": { "line": 19, "column": 6 } } }, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 19, "column": 6 } } }, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 19, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 19, "column": 6 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "data", "decorators": [], "loc": { "start": { "line": 21, "column": 13 }, "end": { "line": 21, "column": 17 } } }, "value": { "type": "ArrayExpression", "elements": [], "loc": { "start": { "line": 21, "column": 25 }, "end": { "line": 21, "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": 21, "column": 19 }, "end": { "line": 21, "column": 20 } } }, "loc": { "start": { "line": 21, "column": 19 }, "end": { "line": 21, "column": 21 } } }, "loc": { "start": { "line": 21, "column": 19 }, "end": { "line": 21, "column": 21 } } }, "loc": { "start": { "line": 21, "column": 23 }, "end": { "line": 21, "column": 24 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 21, "column": 13 }, "end": { "line": 21, "column": 27 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "constructor", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 22, "column": 2 }, "end": { "line": 22, "column": 2 } } } ], "loc": { "start": { "line": 16, "column": 27 }, "end": { "line": 22, "column": 2 } } }, "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 22, "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": 23, "column": 1 } } }