{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "constructor_test", "decorators": [], "loc": { "start": { "line": 16, "column": 14 }, "end": { "line": 16, "column": 30 } } }, "superClass": null, "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "constructor", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "ThisExpression", "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 13 } } }, "arguments": [ { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 18, "column": 14 }, "end": { "line": 18, "column": 15 } } } ], "optional": false, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 16 } } }, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 17 } } } ], "loc": { "start": { "line": 17, "column": 26 }, "end": { "line": 19, "column": 6 } } }, "loc": { "start": { "line": 17, "column": 23 }, "end": { "line": 19, "column": 6 } } }, "loc": { "start": { "line": 17, "column": 23 }, "end": { "line": 19, "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": "protected", "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": "b", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 21, "column": 31 }, "end": { "line": 21, "column": 37 } } }, "decorators": [], "loc": { "start": { "line": 21, "column": 27 }, "end": { "line": 21, "column": 37 } } }, "loc": { "start": { "line": 21, "column": 27 }, "end": { "line": 21, "column": 37 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "c", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 21, "column": 43 }, "end": { "line": 21, "column": 47 } } }, "decorators": [], "loc": { "start": { "line": 21, "column": 39 }, "end": { "line": 21, "column": 47 } } }, "loc": { "start": { "line": 21, "column": 39 }, "end": { "line": 21, "column": 47 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "i", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 21, "column": 53 }, "end": { "line": 21, "column": 56 } } }, "decorators": [], "loc": { "start": { "line": 21, "column": 49 }, "end": { "line": 21, "column": 56 } } }, "loc": { "start": { "line": 21, "column": 49 }, "end": { "line": 21, "column": 56 } } } ], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 21, "column": 58 }, "end": { "line": 22, "column": 6 } } }, "loc": { "start": { "line": 21, "column": 26 }, "end": { "line": 22, "column": 6 } } }, "loc": { "start": { "line": 21, "column": 26 }, "end": { "line": 22, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 21, "column": 5 }, "end": { "line": 22, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "constructor", "accessibility": "private", "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": "i", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 24, "column": 29 }, "end": { "line": 24, "column": 32 } } }, "decorators": [], "loc": { "start": { "line": 24, "column": 25 }, "end": { "line": 24, "column": 32 } } }, "loc": { "start": { "line": 24, "column": 25 }, "end": { "line": 24, "column": 32 } } } ], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 24, "column": 34 }, "end": { "line": 25, "column": 6 } } }, "loc": { "start": { "line": 24, "column": 24 }, "end": { "line": 25, "column": 6 } } }, "loc": { "start": { "line": 24, "column": 24 }, "end": { "line": 25, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 24, "column": 5 }, "end": { "line": 25, "column": 6 } } } ], "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 19, "column": 6 } } } ], "loc": { "start": { "line": 16, "column": 32 }, "end": { "line": 27, "column": 2 } } }, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 27, "column": 2 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "derived", "decorators": [], "loc": { "start": { "line": 29, "column": 7 }, "end": { "line": 29, "column": 14 } } }, "superClass": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "constructor_test", "decorators": [], "loc": { "start": { "line": 29, "column": 23 }, "end": { "line": 29, "column": 39 } } }, "loc": { "start": { "line": 29, "column": 23 }, "end": { "line": 29, "column": 42 } } }, "loc": { "start": { "line": 29, "column": 23 }, "end": { "line": 29, "column": 42 } } }, "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "constructor", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "ThisExpression", "loc": { "start": { "line": 31, "column": 9 }, "end": { "line": 31, "column": 13 } } }, "arguments": [ { "type": "NumberLiteral", "value": 5, "loc": { "start": { "line": 31, "column": 14 }, "end": { "line": 31, "column": 15 } } } ], "optional": false, "loc": { "start": { "line": 31, "column": 9 }, "end": { "line": 31, "column": 16 } } }, "loc": { "start": { "line": 31, "column": 9 }, "end": { "line": 31, "column": 17 } } } ], "loc": { "start": { "line": 30, "column": 26 }, "end": { "line": 32, "column": 6 } } }, "loc": { "start": { "line": 30, "column": 23 }, "end": { "line": 32, "column": 6 } } }, "loc": { "start": { "line": 30, "column": 23 }, "end": { "line": 32, "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": "protected", "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": "i", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 34, "column": 31 }, "end": { "line": 34, "column": 34 } } }, "decorators": [], "loc": { "start": { "line": 34, "column": 27 }, "end": { "line": 34, "column": 34 } } }, "loc": { "start": { "line": 34, "column": 27 }, "end": { "line": 34, "column": 34 } } } ], "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Super", "loc": { "start": { "line": 35, "column": 9 }, "end": { "line": 35, "column": 14 } } }, "arguments": [ { "type": "NumberLiteral", "value": 1.2, "loc": { "start": { "line": 35, "column": 15 }, "end": { "line": 35, "column": 18 } } }, { "type": "CharLiteral", "value": "c", "loc": { "start": { "line": 35, "column": 20 }, "end": { "line": 35, "column": 24 } } }, { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 35, "column": 26 }, "end": { "line": 35, "column": 27 } } } ], "optional": false, "loc": { "start": { "line": 35, "column": 9 }, "end": { "line": 35, "column": 28 } } }, "loc": { "start": { "line": 35, "column": 9 }, "end": { "line": 35, "column": 29 } } } ], "loc": { "start": { "line": 34, "column": 36 }, "end": { "line": 36, "column": 6 } } }, "loc": { "start": { "line": 34, "column": 26 }, "end": { "line": 36, "column": 6 } } }, "loc": { "start": { "line": 34, "column": 26 }, "end": { "line": 36, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 34, "column": 5 }, "end": { "line": 36, "column": 6 } } } ], "decorators": [], "loc": { "start": { "line": 30, "column": 5 }, "end": { "line": 32, "column": 6 } } } ], "loc": { "start": { "line": 29, "column": 41 }, "end": { "line": 38, "column": 2 } } }, "loc": { "start": { "line": 29, "column": 1 }, "end": { "line": 38, "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": 39, "column": 1 } } }