{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "Outer", "decorators": [], "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 12 } } }, "superClass": null, "implements": [], "body": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "Base", "decorators": [], "loc": { "start": { "line": 2, "column": 16 }, "end": { "line": 2, "column": 20 } } }, "superClass": null, "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 3, "column": 17 }, "end": { "line": 3, "column": 18 } } }, "kind": "method", "accessibility": "private", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 3, "column": 17 }, "end": { "line": 3, "column": 18 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 3, "column": 22 }, "end": { "line": 3, "column": 26 } } }, "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 3, "column": 27 }, "end": { "line": 3, "column": 29 } } }, "loc": { "start": { "line": 3, "column": 18 }, "end": { "line": 3, "column": 29 } } }, "loc": { "start": { "line": 3, "column": 18 }, "end": { "line": 3, "column": 29 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 29 } } }, { "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": 4, "column": 6 }, "end": { "line": 4, "column": 6 } } } ], "loc": { "start": { "line": 2, "column": 21 }, "end": { "line": 4, "column": 6 } } }, "loc": { "start": { "line": 2, "column": 10 }, "end": { "line": 4, "column": 6 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "Derived", "decorators": [], "loc": { "start": { "line": 6, "column": 11 }, "end": { "line": 6, "column": 18 } } }, "superClass": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Base", "decorators": [], "loc": { "start": { "line": 6, "column": 27 }, "end": { "line": 6, "column": 31 } } }, "loc": { "start": { "line": 6, "column": 27 }, "end": { "line": 6, "column": 33 } } }, "loc": { "start": { "line": 6, "column": 27 }, "end": { "line": 6, "column": 33 } } }, "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "foo", "decorators": [], "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 12 } } }, "kind": "method", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "foo", "decorators": [], "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 12 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 7, "column": 16 }, "end": { "line": 7, "column": 20 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "base", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Base", "decorators": [], "loc": { "start": { "line": 8, "column": 23 }, "end": { "line": 8, "column": 27 } } }, "loc": { "start": { "line": 8, "column": 23 }, "end": { "line": 8, "column": 29 } } }, "loc": { "start": { "line": 8, "column": 23 }, "end": { "line": 8, "column": 29 } } }, "decorators": [], "loc": { "start": { "line": 8, "column": 17 }, "end": { "line": 8, "column": 21 } } }, "init": { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Base", "decorators": [], "loc": { "start": { "line": 8, "column": 34 }, "end": { "line": 8, "column": 38 } } }, "loc": { "start": { "line": 8, "column": 34 }, "end": { "line": 8, "column": 39 } } }, "loc": { "start": { "line": 8, "column": 34 }, "end": { "line": 8, "column": 39 } } }, "arguments": [], "loc": { "start": { "line": 8, "column": 30 }, "end": { "line": 8, "column": 41 } } }, "loc": { "start": { "line": 8, "column": 17 }, "end": { "line": 8, "column": 41 } } } ], "kind": "let", "loc": { "start": { "line": 8, "column": 13 }, "end": { "line": 8, "column": 41 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "base", "decorators": [], "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 17 } } }, "property": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 9, "column": 18 }, "end": { "line": 9, "column": 19 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 19 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 21 } } }, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 22 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 14 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 16 } } }, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 17 } } } ], "loc": { "start": { "line": 7, "column": 21 }, "end": { "line": 11, "column": 10 } } }, "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 11, "column": 10 } } }, "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 11, "column": 10 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 11, "column": 10 } } }, { "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": 12, "column": 6 }, "end": { "line": 12, "column": 6 } } } ], "loc": { "start": { "line": 6, "column": 32 }, "end": { "line": 12, "column": 6 } } }, "loc": { "start": { "line": 6, "column": 5 }, "end": { "line": 12, "column": 6 } } }, { "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": 13, "column": 2 }, "end": { "line": 13, "column": 2 } } } ], "loc": { "start": { "line": 1, "column": 13 }, "end": { "line": 13, "column": 2 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 13, "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": [], "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": 14, "column": 1 } } } TypeError: Signature a(): void is not visible here. [invalidPrivateAccess5.sts:10:13]