{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "A", "decorators": [], "loc": { "start": { "line": 16, "column": 7 }, "end": { "line": 16, "column": 8 } } }, "superClass": null, "implements": [], "body": [ { "type": "ClassProperty", "key": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 6 } } }, "value": { "type": "ArrowFunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 17, "column": 39 }, "end": { "line": 17, "column": 42 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 36 }, "end": { "line": 17, "column": 42 } } }, "loc": { "start": { "line": 17, "column": 36 }, "end": { "line": 17, "column": 42 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "b", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 17, "column": 47 }, "end": { "line": 17, "column": 50 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 44 }, "end": { "line": 17, "column": 50 } } }, "loc": { "start": { "line": 17, "column": 44 }, "end": { "line": 17, "column": 50 } } } ], "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": null, "loc": { "start": { "line": 17, "column": 57 }, "end": { "line": 17, "column": 63 } } } ], "loc": { "start": { "line": 17, "column": 55 }, "end": { "line": 17, "column": 65 } } }, "loc": { "start": { "line": 17, "column": 35 }, "end": { "line": 17, "column": 65 } } }, "loc": { "start": { "line": 17, "column": 35 }, "end": { "line": 17, "column": 65 } } }, "accessibility": "public", "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSFunctionType", "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 15 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 15 } } }, "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 15 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "b", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 17, "column": 20 }, "end": { "line": 17, "column": 23 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 23 } } }, "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 23 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 17, "column": 28 }, "end": { "line": 17, "column": 32 } } }, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 32 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 65 } } }, { "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": 18, "column": 2 }, "end": { "line": 18, "column": 2 } } } ], "loc": { "start": { "line": 16, "column": 9 }, "end": { "line": 18, "column": 2 } } }, "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 18, "column": 2 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "B", "decorators": [], "loc": { "start": { "line": 20, "column": 7 }, "end": { "line": 20, "column": 8 } } }, "superClass": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "A", "decorators": [], "loc": { "start": { "line": 20, "column": 17 }, "end": { "line": 20, "column": 18 } } }, "loc": { "start": { "line": 20, "column": 17 }, "end": { "line": 20, "column": 20 } } }, "loc": { "start": { "line": 20, "column": 17 }, "end": { "line": 20, "column": 20 } } }, "implements": [], "body": [ { "type": "ClassProperty", "key": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 21, "column": 5 }, "end": { "line": 21, "column": 6 } } }, "value": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 21, "column": 14 }, "end": { "line": 21, "column": 15 } } }, "accessibility": "public", "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 11 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 21, "column": 5 }, "end": { "line": 21, "column": 15 } } }, { "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": 20, "column": 19 }, "end": { "line": 22, "column": 2 } } }, "loc": { "start": { "line": 20, "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 } } }