diff --git a/src/compiler/diagnosticInformationMap.generated.ts b/src/compiler/diagnosticInformationMap.generated.ts index f694d17d0f425..0fef6cb95c024 100644 --- a/src/compiler/diagnosticInformationMap.generated.ts +++ b/src/compiler/diagnosticInformationMap.generated.ts @@ -121,6 +121,8 @@ module ts { Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2: { code: 2030, category: DiagnosticCategory.Error, key: "Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'." }, Exported_variable_0_has_or_is_using_name_1_from_private_module_2: { code: 2031, category: DiagnosticCategory.Error, key: "Exported variable '{0}' has or is using name '{1}' from private module '{2}'." }, Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1: { code: 2032, category: DiagnosticCategory.Error, key: "Parameter '{0}' of constructor from exported class has or is using private name '{1}'." }, + Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1: { code: 2033, category: DiagnosticCategory.Error, key: "Parameter '{0}' of public static property setter from exported class has or is using private name '{1}'." }, + Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1: { code: 2034, category: DiagnosticCategory.Error, key: "Parameter '{0}' of public property setter from exported class has or is using private name '{1}'." }, Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1: { code: 2035, category: DiagnosticCategory.Error, key: "Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'." }, Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1: { code: 2036, category: DiagnosticCategory.Error, key: "Parameter '{0}' of call signature from exported interface has or is using private name '{1}'." }, Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1: { code: 2037, category: DiagnosticCategory.Error, key: "Parameter '{0}' of public static method from exported class has or is using private name '{1}'." }, @@ -128,12 +130,16 @@ module ts { Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1: { code: 2039, category: DiagnosticCategory.Error, key: "Parameter '{0}' of method from exported interface has or is using private name '{1}'." }, Parameter_0_of_exported_function_has_or_is_using_private_name_1: { code: 2040, category: DiagnosticCategory.Error, key: "Parameter '{0}' of exported function has or is using private name '{1}'." }, Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2: { code: 2041, category: DiagnosticCategory.Error, key: "Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'." }, + Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2: { code: 2042, category: DiagnosticCategory.Error, key: "Parameter '{0}' of public static property setter from exported class has or is using name '{1}' from private module '{2}'." }, + Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2: { code: 2043, category: DiagnosticCategory.Error, key: "Parameter '{0}' of public property setter from exported class has or is using name '{1}' from private module '{2}'." }, Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2: { code: 2044, category: DiagnosticCategory.Error, key: "Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'." }, Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2: { code: 2045, category: DiagnosticCategory.Error, key: "Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'." }, Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2: { code: 2046, category: DiagnosticCategory.Error, key: "Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'." }, Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2: { code: 2047, category: DiagnosticCategory.Error, key: "Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'." }, Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2: { code: 2048, category: DiagnosticCategory.Error, key: "Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'." }, Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2: { code: 2049, category: DiagnosticCategory.Error, key: "Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'." }, + Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0: { code: 2050, category: DiagnosticCategory.Error, key: "Return type of public static property getter from exported class has or is using private name '{0}'." }, + Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0: { code: 2051, category: DiagnosticCategory.Error, key: "Return type of public property getter from exported class has or is using private name '{0}'." }, Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0: { code: 2052, category: DiagnosticCategory.Error, key: "Return type of constructor signature from exported interface has or is using private name '{0}'." }, Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0: { code: 2053, category: DiagnosticCategory.Error, key: "Return type of call signature from exported interface has or is using private name '{0}'." }, Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0: { code: 2054, category: DiagnosticCategory.Error, key: "Return type of index signature from exported interface has or is using private name '{0}'." }, @@ -141,6 +147,8 @@ module ts { Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0: { code: 2056, category: DiagnosticCategory.Error, key: "Return type of public method from exported class has or is using private name '{0}'." }, Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0: { code: 2057, category: DiagnosticCategory.Error, key: "Return type of method from exported interface has or is using private name '{0}'." }, Return_type_of_exported_function_has_or_is_using_private_name_0: { code: 2058, category: DiagnosticCategory.Error, key: "Return type of exported function has or is using private name '{0}'." }, + Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1: { code: 2059, category: DiagnosticCategory.Error, key: "Return type of public static property getter from exported class has or is using name '{0}' from private module '{1}'." }, + Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1: { code: 2060, category: DiagnosticCategory.Error, key: "Return type of public property getter from exported class has or is using name '{0}' from private module '{1}'." }, Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: { code: 2061, category: DiagnosticCategory.Error, key: "Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'." }, Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: { code: 2062, category: DiagnosticCategory.Error, key: "Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'." }, Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: { code: 2063, category: DiagnosticCategory.Error, key: "Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'." }, diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index ce3f792dbba95..c41f195bec51e 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -476,6 +476,14 @@ "category": "Error", "code": 2032 }, + "Parameter '{0}' of public static property setter from exported class has or is using private name '{1}'.": { + "category": "Error", + "code": 2033 + }, + "Parameter '{0}' of public property setter from exported class has or is using private name '{1}'.": { + "category": "Error", + "code": 2034 + }, "Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'.": { "category": "Error", "code": 2035 @@ -504,6 +512,14 @@ "category": "Error", "code": 2041 }, + "Parameter '{0}' of public static property setter from exported class has or is using name '{1}' from private module '{2}'.": { + "category": "Error", + "code": 2042 + }, + "Parameter '{0}' of public property setter from exported class has or is using name '{1}' from private module '{2}'.": { + "category": "Error", + "code": 2043 + }, "Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'.": { "category": "Error", "code": 2044 @@ -528,6 +544,14 @@ "category": "Error", "code": 2049 }, + "Return type of public static property getter from exported class has or is using private name '{0}'.": { + "category": "Error", + "code": 2050 + }, + "Return type of public property getter from exported class has or is using private name '{0}'.": { + "category": "Error", + "code": 2051 + }, "Return type of constructor signature from exported interface has or is using private name '{0}'.": { "category": "Error", "code": 2052 @@ -556,6 +580,14 @@ "category": "Error", "code": 2058 }, + "Return type of public static property getter from exported class has or is using name '{0}' from private module '{1}'.": { + "category": "Error", + "code": 2059 + }, + "Return type of public property getter from exported class has or is using name '{0}' from private module '{1}'.": { + "category": "Error", + "code": 2060 + }, "Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'.": { "category": "Error", "code": 2061 diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 6ea85c687cad1..751bc480e01ae 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -1884,8 +1884,7 @@ module ts { function writeSymbol(symbol: Symbol, enclosingDeclaration?: Node, meaning?: SymbolFlags) { var symbolAccesibilityResult = resolver.isSymbolAccessible(symbol, enclosingDeclaration, meaning); - // TODO(shkamat): Since we dont have error reporting for all the cases as yet we have this check on handler being present - if (!getSymbolVisibilityDiagnosticMessage || symbolAccesibilityResult.accessibility === SymbolAccessibility.Accessible) { + if (symbolAccesibilityResult.accessibility === SymbolAccessibility.Accessible) { resolver.writeSymbol(symbol, enclosingDeclaration, meaning, writer); // write the aliases @@ -2139,8 +2138,6 @@ module ts { write(" extends "); getSymbolVisibilityDiagnosticMessage = getTypeParameterConstraintVisibilityError; resolver.writeTypeAtLocation(node.constraint, enclosingDeclaration, TypeFormatFlags.None, writer); - // TODO(shkamat) This is just till we get rest of the error reporting up - getSymbolVisibilityDiagnosticMessage = undefined; } } @@ -2160,8 +2157,6 @@ module ts { function emitTypeOfTypeReference(node: Node) { getSymbolVisibilityDiagnosticMessage = getHeritageClauseVisibilityError; resolver.writeTypeAtLocation(node, enclosingDeclaration, TypeFormatFlags.WriteArrayAsGenericType, writer); - // TODO(shkamat) This is just till we get rest of the error reporting up - getSymbolVisibilityDiagnosticMessage = undefined; function getHeritageClauseVisibilityError(symbolAccesibilityResult: SymbolAccessiblityResult) { var diagnosticMessage: DiagnosticMessage; @@ -2287,8 +2282,6 @@ module ts { write(": "); getSymbolVisibilityDiagnosticMessage = getVariableDeclarationTypeVisibilityError; resolver.writeTypeAtLocation(node, enclosingDeclaration, TypeFormatFlags.None, writer); - // TODO(shkamat) This is just till we get rest of the error reporting up - getSymbolVisibilityDiagnosticMessage = undefined; } } @@ -2345,11 +2338,51 @@ module ts { emitSourceTextOfNode(node.name); if (!(node.flags & NodeFlags.Private)) { write(": "); + getSymbolVisibilityDiagnosticMessage = getAccessorDeclarationTypeVisibilityError; resolver.writeTypeAtLocation(node, enclosingDeclaration, TypeFormatFlags.None, writer); } write(";"); writeLine(); } + + function getAccessorDeclarationTypeVisibilityError(symbolAccesibilityResult: SymbolAccessiblityResult) { + // TODO(shkamat) Cannot access name errors + var diagnosticMessage: DiagnosticMessage; + if (node.kind === SyntaxKind.SetAccessor) { + if (node.parent.flags & NodeFlags.Static) { + diagnosticMessage = symbolAccesibilityResult.errorModuleName ? + Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2 : + Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1; + } + else { + diagnosticMessage = symbolAccesibilityResult.errorModuleName ? + Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2 : + Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1; + } + return { + diagnosticMessage: diagnosticMessage, + errorNode: node.parameters[0], + typeName: node.name + }; + } + else { + if (node.flags & NodeFlags.Static) { + diagnosticMessage = symbolAccesibilityResult.errorModuleName ? + Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1 : + Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0; + } + else { + diagnosticMessage = symbolAccesibilityResult.errorModuleName ? + Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1 : + Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0; + } + return { + diagnosticMessage: diagnosticMessage, + errorNode: node.name, + typeName: undefined + }; + } + } } function emitFunctionDeclaration(node: FunctionDeclaration) { @@ -2404,8 +2437,6 @@ module ts { write(": "); getSymbolVisibilityDiagnosticMessage = getReturnTypeVisibilityError; resolver.writeReturnTypeOfSignatureDeclaration(node, enclosingDeclaration, TypeFormatFlags.None, writer); - // TODO(shkamat) This is just till we get rest of the error reporting up - getSymbolVisibilityDiagnosticMessage = undefined; } write(";"); writeLine(); @@ -2481,8 +2512,6 @@ module ts { write(": "); getSymbolVisibilityDiagnosticMessage = getParameterDeclarationTypeVisibilityError; resolver.writeTypeAtLocation(node, enclosingDeclaration, TypeFormatFlags.None, writer); - // TODO(shkamat) This is just till we get rest of the error reporting up - getSymbolVisibilityDiagnosticMessage = undefined; } function getParameterDeclarationTypeVisibilityError(symbolAccesibilityResult: SymbolAccessiblityResult) { diff --git a/tests/baselines/reference/privacyAccessorDeclFile.errors.txt b/tests/baselines/reference/privacyAccessorDeclFile.errors.txt new file mode 100644 index 0000000000000..713f180725193 --- /dev/null +++ b/tests/baselines/reference/privacyAccessorDeclFile.errors.txt @@ -0,0 +1,1130 @@ +==== tests/cases/compiler/privacyAccessorDeclFile_externalModule.ts (24 errors) ==== + + class privateClass { + } + + export class publicClass { + } + + export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { // Error + ~~~~~~~~~~~~~~~~~~~~ +!!! Return type of public static property getter from exported class has or is using private name 'privateClass'. + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { // Error + ~~~~~~~~~~~~~~ +!!! Return type of public property getter from exported class has or is using private name 'privateClass'. + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { // Error + ~~~~~~~~~~~~~~~~~~~~~ +!!! Return type of public static property getter from exported class has or is using private name 'privateClass'. + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { // Error + ~~~~~~~~~~~~~~~ +!!! Return type of public property getter from exported class has or is using private name 'privateClass'. + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { // Error + ~~~~~~~~~~~~~~~~~~~ +!!! Parameter 'myPublicStaticMethod' of public property setter from exported class has or is using private name 'privateClass'. + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { // Error + ~~~~~~~~~~~~~~~~~~~ +!!! Parameter 'myPublicMethod' of public property setter from exported class has or is using private name 'privateClass'. + } + private set myPrivateMethod(param: privateClass) { + } + } + + export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { // Error + ~~~~~~~~~~~~~~~~~~~~ +!!! Return type of public static property getter from exported class has or is using name 'privateModule.publicClass' from private module 'privateModule'. + return null; + } + get myPublicMethod(): privateModule.publicClass { // Error + ~~~~~~~~~~~~~~ +!!! Return type of public property getter from exported class has or is using name 'privateModule.publicClass' from private module 'privateModule'. + return null; + } + static get myPublicStaticMethod1() { // Error + ~~~~~~~~~~~~~~~~~~~~~ +!!! Return type of public static property getter from exported class has or is using name 'privateModule.publicClass' from private module 'privateModule'. + return new privateModule.publicClass(); + } + get myPublicMethod1() { // Error + ~~~~~~~~~~~~~~~ +!!! Return type of public property getter from exported class has or is using name 'privateModule.publicClass' from private module 'privateModule'. + return new privateModule.publicClass(); + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { // Error + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! Parameter 'myPublicStaticMethod' of public property setter from exported class has or is using name 'privateModule.publicClass' from private module 'privateModule'. + } + set myPublicMethod(param: privateModule.publicClass) { // Error + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! Parameter 'myPublicMethod' of public property setter from exported class has or is using name 'privateModule.publicClass' from private module 'privateModule'. + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } + + export module publicModule { + class privateClass { + } + + export class publicClass { + } + export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { // Error + ~~~~~~~~~~~~~~~~~~~~ +!!! Return type of public static property getter from exported class has or is using private name 'privateClass'. + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { // Error + ~~~~~~~~~~~~~~ +!!! Return type of public property getter from exported class has or is using private name 'privateClass'. + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { // Error + ~~~~~~~~~~~~~~~~~~~~~ +!!! Return type of public static property getter from exported class has or is using private name 'privateClass'. + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { // Error + ~~~~~~~~~~~~~~~ +!!! Return type of public property getter from exported class has or is using private name 'privateClass'. + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { // Error + ~~~~~~~~~~~~~~~~~~~ +!!! Parameter 'myPublicStaticMethod' of public property setter from exported class has or is using private name 'privateClass'. + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { // Error + ~~~~~~~~~~~~~~~~~~~ +!!! Parameter 'myPublicMethod' of public property setter from exported class has or is using private name 'privateClass'. + } + private set myPrivateMethod(param: privateClass) { + } + } + + export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { // Error + ~~~~~~~~~~~~~~~~~~~~ +!!! Return type of public static property getter from exported class has or is using name 'privateModule.publicClass' from private module 'privateModule'. + return null; + } + get myPublicMethod(): privateModule.publicClass { // Error + ~~~~~~~~~~~~~~ +!!! Return type of public property getter from exported class has or is using name 'privateModule.publicClass' from private module 'privateModule'. + return null; + } + static get myPublicStaticMethod1() { // Error + ~~~~~~~~~~~~~~~~~~~~~ +!!! Return type of public static property getter from exported class has or is using name 'privateModule.publicClass' from private module 'privateModule'. + return new privateModule.publicClass(); + } + get myPublicMethod1() { // Error + ~~~~~~~~~~~~~~~ +!!! Return type of public property getter from exported class has or is using name 'privateModule.publicClass' from private module 'privateModule'. + return new privateModule.publicClass(); + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { // Error + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! Parameter 'myPublicStaticMethod' of public property setter from exported class has or is using name 'privateModule.publicClass' from private module 'privateModule'. + } + set myPublicMethod(param: privateModule.publicClass) { // Error + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! Parameter 'myPublicMethod' of public property setter from exported class has or is using name 'privateModule.publicClass' from private module 'privateModule'. + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } + } + + module privateModule { + class privateClass { + } + + export class publicClass { + } + export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } + } + +==== tests/cases/compiler/privacyAccessorDeclFile_GlobalFile.ts (12 errors) ==== + class publicClassInGlobal { + } + + class publicClassInGlobalWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClassInGlobal { + return null; + } + private static get myPrivateStaticMethod(): publicClassInGlobal { + return null; + } + get myPublicMethod(): publicClassInGlobal { + return null; + } + private get myPrivateMethod(): publicClassInGlobal { + return null; + } + static get myPublicStaticMethod1() { + return new publicClassInGlobal(); + } + private static get myPrivateStaticMethod1() { + return new publicClassInGlobal(); + } + get myPublicMethod1() { + return new publicClassInGlobal(); + } + private get myPrivateMethod1() { + return new publicClassInGlobal(); + } + } + + class publicClassInGlobalWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClassInGlobal) { + } + private static set myPrivateStaticMethod(param: publicClassInGlobal) { + } + set myPublicMethod(param: publicClassInGlobal) { + } + private set myPrivateMethod(param: publicClassInGlobal) { + } + } + + module publicModuleInGlobal { + class privateClass { + } + + export class publicClass { + } + + module privateModule { + class privateClass { + } + + export class publicClass { + } + export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } + } + + export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { // Error + ~~~~~~~~~~~~~~~~~~~~ +!!! Return type of public static property getter from exported class has or is using private name 'privateClass'. + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { // Error + ~~~~~~~~~~~~~~ +!!! Return type of public property getter from exported class has or is using private name 'privateClass'. + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { // Error + ~~~~~~~~~~~~~~~~~~~~~ +!!! Return type of public static property getter from exported class has or is using private name 'privateClass'. + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { // Error + ~~~~~~~~~~~~~~~ +!!! Return type of public property getter from exported class has or is using private name 'privateClass'. + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { // Error + ~~~~~~~~~~~~~~~~~~~ +!!! Parameter 'myPublicStaticMethod' of public property setter from exported class has or is using private name 'privateClass'. + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { // Error + ~~~~~~~~~~~~~~~~~~~ +!!! Parameter 'myPublicMethod' of public property setter from exported class has or is using private name 'privateClass'. + } + private set myPrivateMethod(param: privateClass) { + } + } + + export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { // Error + ~~~~~~~~~~~~~~~~~~~~ +!!! Return type of public static property getter from exported class has or is using name 'privateModule.publicClass' from private module 'privateModule'. + return null; + } + get myPublicMethod(): privateModule.publicClass { // Error + ~~~~~~~~~~~~~~ +!!! Return type of public property getter from exported class has or is using name 'privateModule.publicClass' from private module 'privateModule'. + return null; + } + static get myPublicStaticMethod1() { // Error + ~~~~~~~~~~~~~~~~~~~~~ +!!! Return type of public static property getter from exported class has or is using name 'privateModule.publicClass' from private module 'privateModule'. + return new privateModule.publicClass(); + } + get myPublicMethod1() { // Error + ~~~~~~~~~~~~~~~ +!!! Return type of public property getter from exported class has or is using name 'privateModule.publicClass' from private module 'privateModule'. + return new privateModule.publicClass(); + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { // Error + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! Parameter 'myPublicStaticMethod' of public property setter from exported class has or is using name 'privateModule.publicClass' from private module 'privateModule'. + } + set myPublicMethod(param: privateModule.publicClass) { // Error + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! Parameter 'myPublicMethod' of public property setter from exported class has or is using name 'privateModule.publicClass' from private module 'privateModule'. + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } + } \ No newline at end of file diff --git a/tests/baselines/reference/privacyAccessorDeclFile.js b/tests/baselines/reference/privacyAccessorDeclFile.js new file mode 100644 index 0000000000000..9744e4ef22033 --- /dev/null +++ b/tests/baselines/reference/privacyAccessorDeclFile.js @@ -0,0 +1,3555 @@ +//// [tests/cases/compiler/privacyAccessorDeclFile.ts] //// + +//// [privacyAccessorDeclFile_externalModule.ts] + +class privateClass { +} + +export class publicClass { +} + +export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { // Error + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { // Error + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { // Error + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { // Error + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } +} + +export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } +} + +class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } +} + +class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } +} + +export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { // Error + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { // Error + } + private set myPrivateMethod(param: privateClass) { + } +} + +export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } +} + +class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } +} + +class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } +} + +export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { // Error + return null; + } + get myPublicMethod(): privateModule.publicClass { // Error + return null; + } + static get myPublicStaticMethod1() { // Error + return new privateModule.publicClass(); + } + get myPublicMethod1() { // Error + return new privateModule.publicClass(); + } +} + +export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { // Error + } + set myPublicMethod(param: privateModule.publicClass) { // Error + } +} + +class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } +} + +class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } +} + +export module publicModule { + class privateClass { + } + + export class publicClass { + } + export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { // Error + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { // Error + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { // Error + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { // Error + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { // Error + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { // Error + } + private set myPrivateMethod(param: privateClass) { + } + } + + export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { // Error + return null; + } + get myPublicMethod(): privateModule.publicClass { // Error + return null; + } + static get myPublicStaticMethod1() { // Error + return new privateModule.publicClass(); + } + get myPublicMethod1() { // Error + return new privateModule.publicClass(); + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { // Error + } + set myPublicMethod(param: privateModule.publicClass) { // Error + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } +} + +module privateModule { + class privateClass { + } + + export class publicClass { + } + export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } +} + +//// [privacyAccessorDeclFile_GlobalFile.ts] +class publicClassInGlobal { +} + +class publicClassInGlobalWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClassInGlobal { + return null; + } + private static get myPrivateStaticMethod(): publicClassInGlobal { + return null; + } + get myPublicMethod(): publicClassInGlobal { + return null; + } + private get myPrivateMethod(): publicClassInGlobal { + return null; + } + static get myPublicStaticMethod1() { + return new publicClassInGlobal(); + } + private static get myPrivateStaticMethod1() { + return new publicClassInGlobal(); + } + get myPublicMethod1() { + return new publicClassInGlobal(); + } + private get myPrivateMethod1() { + return new publicClassInGlobal(); + } +} + +class publicClassInGlobalWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClassInGlobal) { + } + private static set myPrivateStaticMethod(param: publicClassInGlobal) { + } + set myPublicMethod(param: publicClassInGlobal) { + } + private set myPrivateMethod(param: publicClassInGlobal) { + } +} + +module publicModuleInGlobal { + class privateClass { + } + + export class publicClass { + } + + module privateModule { + class privateClass { + } + + export class publicClass { + } + export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } + } + + export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { // Error + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { // Error + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { // Error + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { // Error + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { // Error + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { // Error + } + private set myPrivateMethod(param: privateClass) { + } + } + + export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { // Error + return null; + } + get myPublicMethod(): privateModule.publicClass { // Error + return null; + } + static get myPublicStaticMethod1() { // Error + return new privateModule.publicClass(); + } + get myPublicMethod1() { // Error + return new privateModule.publicClass(); + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { // Error + } + set myPublicMethod(param: privateModule.publicClass) { // Error + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } +} + +//// [privacyAccessorDeclFile_externalModule.js] +var privateClass = (function () { + function privateClass() { + } + return privateClass; +})(); +var publicClass = (function () { + function publicClass() { + } + return publicClass; +})(); +exports.publicClass = publicClass; +var publicClassWithWithPrivateGetAccessorTypes = (function () { + function publicClassWithWithPrivateGetAccessorTypes() { + } + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + return publicClassWithWithPrivateGetAccessorTypes; +})(); +exports.publicClassWithWithPrivateGetAccessorTypes = publicClassWithWithPrivateGetAccessorTypes; +var publicClassWithWithPublicGetAccessorTypes = (function () { + function publicClassWithWithPublicGetAccessorTypes() { + } + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes, "myPrivateStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes.prototype, "myPrivateMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes, "myPrivateStaticMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes.prototype, "myPrivateMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + return publicClassWithWithPublicGetAccessorTypes; +})(); +exports.publicClassWithWithPublicGetAccessorTypes = publicClassWithWithPublicGetAccessorTypes; +var privateClassWithWithPrivateGetAccessorTypes = (function () { + function privateClassWithWithPrivateGetAccessorTypes() { + } + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + return privateClassWithWithPrivateGetAccessorTypes; +})(); +var privateClassWithWithPublicGetAccessorTypes = (function () { + function privateClassWithWithPublicGetAccessorTypes() { + } + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes, "myPrivateStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes.prototype, "myPrivateMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes, "myPrivateStaticMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes.prototype, "myPrivateMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + return privateClassWithWithPublicGetAccessorTypes; +})(); +var publicClassWithWithPrivateSetAccessorTypes = (function () { + function publicClassWithWithPrivateSetAccessorTypes() { + } + Object.defineProperty(publicClassWithWithPrivateSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateSetAccessorTypes, "myPrivateStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateSetAccessorTypes.prototype, "myPrivateMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return publicClassWithWithPrivateSetAccessorTypes; +})(); +exports.publicClassWithWithPrivateSetAccessorTypes = publicClassWithWithPrivateSetAccessorTypes; +var publicClassWithWithPublicSetAccessorTypes = (function () { + function publicClassWithWithPublicSetAccessorTypes() { + } + Object.defineProperty(publicClassWithWithPublicSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicSetAccessorTypes, "myPrivateStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicSetAccessorTypes.prototype, "myPrivateMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return publicClassWithWithPublicSetAccessorTypes; +})(); +exports.publicClassWithWithPublicSetAccessorTypes = publicClassWithWithPublicSetAccessorTypes; +var privateClassWithWithPrivateSetAccessorTypes = (function () { + function privateClassWithWithPrivateSetAccessorTypes() { + } + Object.defineProperty(privateClassWithWithPrivateSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateSetAccessorTypes, "myPrivateStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateSetAccessorTypes.prototype, "myPrivateMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return privateClassWithWithPrivateSetAccessorTypes; +})(); +var privateClassWithWithPublicSetAccessorTypes = (function () { + function privateClassWithWithPublicSetAccessorTypes() { + } + Object.defineProperty(privateClassWithWithPublicSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicSetAccessorTypes, "myPrivateStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicSetAccessorTypes.prototype, "myPrivateMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return privateClassWithWithPublicSetAccessorTypes; +})(); +var publicClassWithPrivateModuleGetAccessorTypes = (function () { + function publicClassWithPrivateModuleGetAccessorTypes() { + } + Object.defineProperty(publicClassWithPrivateModuleGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithPrivateModuleGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithPrivateModuleGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new privateModule.publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithPrivateModuleGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new privateModule.publicClass(); + }, + enumerable: true, + configurable: true + }); + return publicClassWithPrivateModuleGetAccessorTypes; +})(); +exports.publicClassWithPrivateModuleGetAccessorTypes = publicClassWithPrivateModuleGetAccessorTypes; +var publicClassWithPrivateModuleSetAccessorTypes = (function () { + function publicClassWithPrivateModuleSetAccessorTypes() { + } + Object.defineProperty(publicClassWithPrivateModuleSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithPrivateModuleSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return publicClassWithPrivateModuleSetAccessorTypes; +})(); +exports.publicClassWithPrivateModuleSetAccessorTypes = publicClassWithPrivateModuleSetAccessorTypes; +var privateClassWithPrivateModuleGetAccessorTypes = (function () { + function privateClassWithPrivateModuleGetAccessorTypes() { + } + Object.defineProperty(privateClassWithPrivateModuleGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithPrivateModuleGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithPrivateModuleGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new privateModule.publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithPrivateModuleGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new privateModule.publicClass(); + }, + enumerable: true, + configurable: true + }); + return privateClassWithPrivateModuleGetAccessorTypes; +})(); +var privateClassWithPrivateModuleSetAccessorTypes = (function () { + function privateClassWithPrivateModuleSetAccessorTypes() { + } + Object.defineProperty(privateClassWithPrivateModuleSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithPrivateModuleSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return privateClassWithPrivateModuleSetAccessorTypes; +})(); +(function (publicModule) { + var privateClass = (function () { + function privateClass() { + } + return privateClass; + })(); + var publicClass = (function () { + function publicClass() { + } + return publicClass; + })(); + publicModule.publicClass = publicClass; + var publicClassWithWithPrivateGetAccessorTypes = (function () { + function publicClassWithWithPrivateGetAccessorTypes() { + } + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + return publicClassWithWithPrivateGetAccessorTypes; + })(); + publicModule.publicClassWithWithPrivateGetAccessorTypes = publicClassWithWithPrivateGetAccessorTypes; + var publicClassWithWithPublicGetAccessorTypes = (function () { + function publicClassWithWithPublicGetAccessorTypes() { + } + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes, "myPrivateStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes.prototype, "myPrivateMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes, "myPrivateStaticMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes.prototype, "myPrivateMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + return publicClassWithWithPublicGetAccessorTypes; + })(); + publicModule.publicClassWithWithPublicGetAccessorTypes = publicClassWithWithPublicGetAccessorTypes; + var privateClassWithWithPrivateGetAccessorTypes = (function () { + function privateClassWithWithPrivateGetAccessorTypes() { + } + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + return privateClassWithWithPrivateGetAccessorTypes; + })(); + var privateClassWithWithPublicGetAccessorTypes = (function () { + function privateClassWithWithPublicGetAccessorTypes() { + } + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes, "myPrivateStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes.prototype, "myPrivateMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes, "myPrivateStaticMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes.prototype, "myPrivateMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + return privateClassWithWithPublicGetAccessorTypes; + })(); + var publicClassWithWithPrivateSetAccessorTypes = (function () { + function publicClassWithWithPrivateSetAccessorTypes() { + } + Object.defineProperty(publicClassWithWithPrivateSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateSetAccessorTypes, "myPrivateStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateSetAccessorTypes.prototype, "myPrivateMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return publicClassWithWithPrivateSetAccessorTypes; + })(); + publicModule.publicClassWithWithPrivateSetAccessorTypes = publicClassWithWithPrivateSetAccessorTypes; + var publicClassWithWithPublicSetAccessorTypes = (function () { + function publicClassWithWithPublicSetAccessorTypes() { + } + Object.defineProperty(publicClassWithWithPublicSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicSetAccessorTypes, "myPrivateStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicSetAccessorTypes.prototype, "myPrivateMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return publicClassWithWithPublicSetAccessorTypes; + })(); + publicModule.publicClassWithWithPublicSetAccessorTypes = publicClassWithWithPublicSetAccessorTypes; + var privateClassWithWithPrivateSetAccessorTypes = (function () { + function privateClassWithWithPrivateSetAccessorTypes() { + } + Object.defineProperty(privateClassWithWithPrivateSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateSetAccessorTypes, "myPrivateStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateSetAccessorTypes.prototype, "myPrivateMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return privateClassWithWithPrivateSetAccessorTypes; + })(); + var privateClassWithWithPublicSetAccessorTypes = (function () { + function privateClassWithWithPublicSetAccessorTypes() { + } + Object.defineProperty(privateClassWithWithPublicSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicSetAccessorTypes, "myPrivateStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicSetAccessorTypes.prototype, "myPrivateMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return privateClassWithWithPublicSetAccessorTypes; + })(); + var publicClassWithPrivateModuleGetAccessorTypes = (function () { + function publicClassWithPrivateModuleGetAccessorTypes() { + } + Object.defineProperty(publicClassWithPrivateModuleGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithPrivateModuleGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithPrivateModuleGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new privateModule.publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithPrivateModuleGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new privateModule.publicClass(); + }, + enumerable: true, + configurable: true + }); + return publicClassWithPrivateModuleGetAccessorTypes; + })(); + publicModule.publicClassWithPrivateModuleGetAccessorTypes = publicClassWithPrivateModuleGetAccessorTypes; + var publicClassWithPrivateModuleSetAccessorTypes = (function () { + function publicClassWithPrivateModuleSetAccessorTypes() { + } + Object.defineProperty(publicClassWithPrivateModuleSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithPrivateModuleSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return publicClassWithPrivateModuleSetAccessorTypes; + })(); + publicModule.publicClassWithPrivateModuleSetAccessorTypes = publicClassWithPrivateModuleSetAccessorTypes; + var privateClassWithPrivateModuleGetAccessorTypes = (function () { + function privateClassWithPrivateModuleGetAccessorTypes() { + } + Object.defineProperty(privateClassWithPrivateModuleGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithPrivateModuleGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithPrivateModuleGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new privateModule.publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithPrivateModuleGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new privateModule.publicClass(); + }, + enumerable: true, + configurable: true + }); + return privateClassWithPrivateModuleGetAccessorTypes; + })(); + var privateClassWithPrivateModuleSetAccessorTypes = (function () { + function privateClassWithPrivateModuleSetAccessorTypes() { + } + Object.defineProperty(privateClassWithPrivateModuleSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithPrivateModuleSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return privateClassWithPrivateModuleSetAccessorTypes; + })(); +})(exports.publicModule || (exports.publicModule = {})); +var publicModule = exports.publicModule; +var privateModule; +(function (privateModule) { + var privateClass = (function () { + function privateClass() { + } + return privateClass; + })(); + var publicClass = (function () { + function publicClass() { + } + return publicClass; + })(); + privateModule.publicClass = publicClass; + var publicClassWithWithPrivateGetAccessorTypes = (function () { + function publicClassWithWithPrivateGetAccessorTypes() { + } + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + return publicClassWithWithPrivateGetAccessorTypes; + })(); + privateModule.publicClassWithWithPrivateGetAccessorTypes = publicClassWithWithPrivateGetAccessorTypes; + var publicClassWithWithPublicGetAccessorTypes = (function () { + function publicClassWithWithPublicGetAccessorTypes() { + } + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes, "myPrivateStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes.prototype, "myPrivateMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes, "myPrivateStaticMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes.prototype, "myPrivateMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + return publicClassWithWithPublicGetAccessorTypes; + })(); + privateModule.publicClassWithWithPublicGetAccessorTypes = publicClassWithWithPublicGetAccessorTypes; + var privateClassWithWithPrivateGetAccessorTypes = (function () { + function privateClassWithWithPrivateGetAccessorTypes() { + } + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + return privateClassWithWithPrivateGetAccessorTypes; + })(); + var privateClassWithWithPublicGetAccessorTypes = (function () { + function privateClassWithWithPublicGetAccessorTypes() { + } + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes, "myPrivateStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes.prototype, "myPrivateMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes, "myPrivateStaticMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes.prototype, "myPrivateMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + return privateClassWithWithPublicGetAccessorTypes; + })(); + var publicClassWithWithPrivateSetAccessorTypes = (function () { + function publicClassWithWithPrivateSetAccessorTypes() { + } + Object.defineProperty(publicClassWithWithPrivateSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateSetAccessorTypes, "myPrivateStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateSetAccessorTypes.prototype, "myPrivateMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return publicClassWithWithPrivateSetAccessorTypes; + })(); + privateModule.publicClassWithWithPrivateSetAccessorTypes = publicClassWithWithPrivateSetAccessorTypes; + var publicClassWithWithPublicSetAccessorTypes = (function () { + function publicClassWithWithPublicSetAccessorTypes() { + } + Object.defineProperty(publicClassWithWithPublicSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicSetAccessorTypes, "myPrivateStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicSetAccessorTypes.prototype, "myPrivateMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return publicClassWithWithPublicSetAccessorTypes; + })(); + privateModule.publicClassWithWithPublicSetAccessorTypes = publicClassWithWithPublicSetAccessorTypes; + var privateClassWithWithPrivateSetAccessorTypes = (function () { + function privateClassWithWithPrivateSetAccessorTypes() { + } + Object.defineProperty(privateClassWithWithPrivateSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateSetAccessorTypes, "myPrivateStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateSetAccessorTypes.prototype, "myPrivateMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return privateClassWithWithPrivateSetAccessorTypes; + })(); + var privateClassWithWithPublicSetAccessorTypes = (function () { + function privateClassWithWithPublicSetAccessorTypes() { + } + Object.defineProperty(privateClassWithWithPublicSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicSetAccessorTypes, "myPrivateStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicSetAccessorTypes.prototype, "myPrivateMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return privateClassWithWithPublicSetAccessorTypes; + })(); + var publicClassWithPrivateModuleGetAccessorTypes = (function () { + function publicClassWithPrivateModuleGetAccessorTypes() { + } + Object.defineProperty(publicClassWithPrivateModuleGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithPrivateModuleGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithPrivateModuleGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new privateModule.publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithPrivateModuleGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new privateModule.publicClass(); + }, + enumerable: true, + configurable: true + }); + return publicClassWithPrivateModuleGetAccessorTypes; + })(); + privateModule.publicClassWithPrivateModuleGetAccessorTypes = publicClassWithPrivateModuleGetAccessorTypes; + var publicClassWithPrivateModuleSetAccessorTypes = (function () { + function publicClassWithPrivateModuleSetAccessorTypes() { + } + Object.defineProperty(publicClassWithPrivateModuleSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithPrivateModuleSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return publicClassWithPrivateModuleSetAccessorTypes; + })(); + privateModule.publicClassWithPrivateModuleSetAccessorTypes = publicClassWithPrivateModuleSetAccessorTypes; + var privateClassWithPrivateModuleGetAccessorTypes = (function () { + function privateClassWithPrivateModuleGetAccessorTypes() { + } + Object.defineProperty(privateClassWithPrivateModuleGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithPrivateModuleGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithPrivateModuleGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new privateModule.publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithPrivateModuleGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new privateModule.publicClass(); + }, + enumerable: true, + configurable: true + }); + return privateClassWithPrivateModuleGetAccessorTypes; + })(); + var privateClassWithPrivateModuleSetAccessorTypes = (function () { + function privateClassWithPrivateModuleSetAccessorTypes() { + } + Object.defineProperty(privateClassWithPrivateModuleSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithPrivateModuleSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return privateClassWithPrivateModuleSetAccessorTypes; + })(); +})(privateModule || (privateModule = {})); +//// [privacyAccessorDeclFile_GlobalFile.js] +var publicClassInGlobal = (function () { + function publicClassInGlobal() { + } + return publicClassInGlobal; +})(); +var publicClassInGlobalWithPublicGetAccessorTypes = (function () { + function publicClassInGlobalWithPublicGetAccessorTypes() { + } + Object.defineProperty(publicClassInGlobalWithPublicGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassInGlobalWithPublicGetAccessorTypes, "myPrivateStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassInGlobalWithPublicGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassInGlobalWithPublicGetAccessorTypes.prototype, "myPrivateMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassInGlobalWithPublicGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new publicClassInGlobal(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassInGlobalWithPublicGetAccessorTypes, "myPrivateStaticMethod1", { + get: function () { + return new publicClassInGlobal(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassInGlobalWithPublicGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new publicClassInGlobal(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassInGlobalWithPublicGetAccessorTypes.prototype, "myPrivateMethod1", { + get: function () { + return new publicClassInGlobal(); + }, + enumerable: true, + configurable: true + }); + return publicClassInGlobalWithPublicGetAccessorTypes; +})(); +var publicClassInGlobalWithWithPublicSetAccessorTypes = (function () { + function publicClassInGlobalWithWithPublicSetAccessorTypes() { + } + Object.defineProperty(publicClassInGlobalWithWithPublicSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassInGlobalWithWithPublicSetAccessorTypes, "myPrivateStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassInGlobalWithWithPublicSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassInGlobalWithWithPublicSetAccessorTypes.prototype, "myPrivateMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return publicClassInGlobalWithWithPublicSetAccessorTypes; +})(); +var publicModuleInGlobal; +(function (publicModuleInGlobal) { + var privateClass = (function () { + function privateClass() { + } + return privateClass; + })(); + var publicClass = (function () { + function publicClass() { + } + return publicClass; + })(); + publicModuleInGlobal.publicClass = publicClass; + var privateModule; + (function (privateModule) { + var privateClass = (function () { + function privateClass() { + } + return privateClass; + })(); + var publicClass = (function () { + function publicClass() { + } + return publicClass; + })(); + privateModule.publicClass = publicClass; + var publicClassWithWithPrivateGetAccessorTypes = (function () { + function publicClassWithWithPrivateGetAccessorTypes() { + } + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + return publicClassWithWithPrivateGetAccessorTypes; + })(); + privateModule.publicClassWithWithPrivateGetAccessorTypes = publicClassWithWithPrivateGetAccessorTypes; + var publicClassWithWithPublicGetAccessorTypes = (function () { + function publicClassWithWithPublicGetAccessorTypes() { + } + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes, "myPrivateStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes.prototype, "myPrivateMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes, "myPrivateStaticMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes.prototype, "myPrivateMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + return publicClassWithWithPublicGetAccessorTypes; + })(); + privateModule.publicClassWithWithPublicGetAccessorTypes = publicClassWithWithPublicGetAccessorTypes; + var privateClassWithWithPrivateGetAccessorTypes = (function () { + function privateClassWithWithPrivateGetAccessorTypes() { + } + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + return privateClassWithWithPrivateGetAccessorTypes; + })(); + var privateClassWithWithPublicGetAccessorTypes = (function () { + function privateClassWithWithPublicGetAccessorTypes() { + } + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes, "myPrivateStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes.prototype, "myPrivateMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes, "myPrivateStaticMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes.prototype, "myPrivateMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + return privateClassWithWithPublicGetAccessorTypes; + })(); + var publicClassWithWithPrivateSetAccessorTypes = (function () { + function publicClassWithWithPrivateSetAccessorTypes() { + } + Object.defineProperty(publicClassWithWithPrivateSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateSetAccessorTypes, "myPrivateStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateSetAccessorTypes.prototype, "myPrivateMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return publicClassWithWithPrivateSetAccessorTypes; + })(); + privateModule.publicClassWithWithPrivateSetAccessorTypes = publicClassWithWithPrivateSetAccessorTypes; + var publicClassWithWithPublicSetAccessorTypes = (function () { + function publicClassWithWithPublicSetAccessorTypes() { + } + Object.defineProperty(publicClassWithWithPublicSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicSetAccessorTypes, "myPrivateStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicSetAccessorTypes.prototype, "myPrivateMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return publicClassWithWithPublicSetAccessorTypes; + })(); + privateModule.publicClassWithWithPublicSetAccessorTypes = publicClassWithWithPublicSetAccessorTypes; + var privateClassWithWithPrivateSetAccessorTypes = (function () { + function privateClassWithWithPrivateSetAccessorTypes() { + } + Object.defineProperty(privateClassWithWithPrivateSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateSetAccessorTypes, "myPrivateStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateSetAccessorTypes.prototype, "myPrivateMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return privateClassWithWithPrivateSetAccessorTypes; + })(); + var privateClassWithWithPublicSetAccessorTypes = (function () { + function privateClassWithWithPublicSetAccessorTypes() { + } + Object.defineProperty(privateClassWithWithPublicSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicSetAccessorTypes, "myPrivateStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicSetAccessorTypes.prototype, "myPrivateMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return privateClassWithWithPublicSetAccessorTypes; + })(); + var publicClassWithPrivateModuleGetAccessorTypes = (function () { + function publicClassWithPrivateModuleGetAccessorTypes() { + } + Object.defineProperty(publicClassWithPrivateModuleGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithPrivateModuleGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithPrivateModuleGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new privateModule.publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithPrivateModuleGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new privateModule.publicClass(); + }, + enumerable: true, + configurable: true + }); + return publicClassWithPrivateModuleGetAccessorTypes; + })(); + privateModule.publicClassWithPrivateModuleGetAccessorTypes = publicClassWithPrivateModuleGetAccessorTypes; + var publicClassWithPrivateModuleSetAccessorTypes = (function () { + function publicClassWithPrivateModuleSetAccessorTypes() { + } + Object.defineProperty(publicClassWithPrivateModuleSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithPrivateModuleSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return publicClassWithPrivateModuleSetAccessorTypes; + })(); + privateModule.publicClassWithPrivateModuleSetAccessorTypes = publicClassWithPrivateModuleSetAccessorTypes; + var privateClassWithPrivateModuleGetAccessorTypes = (function () { + function privateClassWithPrivateModuleGetAccessorTypes() { + } + Object.defineProperty(privateClassWithPrivateModuleGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithPrivateModuleGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithPrivateModuleGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new privateModule.publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithPrivateModuleGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new privateModule.publicClass(); + }, + enumerable: true, + configurable: true + }); + return privateClassWithPrivateModuleGetAccessorTypes; + })(); + var privateClassWithPrivateModuleSetAccessorTypes = (function () { + function privateClassWithPrivateModuleSetAccessorTypes() { + } + Object.defineProperty(privateClassWithPrivateModuleSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithPrivateModuleSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return privateClassWithPrivateModuleSetAccessorTypes; + })(); + })(privateModule || (privateModule = {})); + var publicClassWithWithPrivateGetAccessorTypes = (function () { + function publicClassWithWithPrivateGetAccessorTypes() { + } + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + return publicClassWithWithPrivateGetAccessorTypes; + })(); + publicModuleInGlobal.publicClassWithWithPrivateGetAccessorTypes = publicClassWithWithPrivateGetAccessorTypes; + var publicClassWithWithPublicGetAccessorTypes = (function () { + function publicClassWithWithPublicGetAccessorTypes() { + } + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes, "myPrivateStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes.prototype, "myPrivateMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes, "myPrivateStaticMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicGetAccessorTypes.prototype, "myPrivateMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + return publicClassWithWithPublicGetAccessorTypes; + })(); + publicModuleInGlobal.publicClassWithWithPublicGetAccessorTypes = publicClassWithWithPublicGetAccessorTypes; + var privateClassWithWithPrivateGetAccessorTypes = (function () { + function privateClassWithWithPrivateGetAccessorTypes() { + } + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod1", { + get: function () { + return new privateClass(); + }, + enumerable: true, + configurable: true + }); + return privateClassWithWithPrivateGetAccessorTypes; + })(); + var privateClassWithWithPublicGetAccessorTypes = (function () { + function privateClassWithWithPublicGetAccessorTypes() { + } + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes, "myPrivateStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes.prototype, "myPrivateMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes, "myPrivateStaticMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicGetAccessorTypes.prototype, "myPrivateMethod1", { + get: function () { + return new publicClass(); + }, + enumerable: true, + configurable: true + }); + return privateClassWithWithPublicGetAccessorTypes; + })(); + var publicClassWithWithPrivateSetAccessorTypes = (function () { + function publicClassWithWithPrivateSetAccessorTypes() { + } + Object.defineProperty(publicClassWithWithPrivateSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateSetAccessorTypes, "myPrivateStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPrivateSetAccessorTypes.prototype, "myPrivateMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return publicClassWithWithPrivateSetAccessorTypes; + })(); + publicModuleInGlobal.publicClassWithWithPrivateSetAccessorTypes = publicClassWithWithPrivateSetAccessorTypes; + var publicClassWithWithPublicSetAccessorTypes = (function () { + function publicClassWithWithPublicSetAccessorTypes() { + } + Object.defineProperty(publicClassWithWithPublicSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicSetAccessorTypes, "myPrivateStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithWithPublicSetAccessorTypes.prototype, "myPrivateMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return publicClassWithWithPublicSetAccessorTypes; + })(); + publicModuleInGlobal.publicClassWithWithPublicSetAccessorTypes = publicClassWithWithPublicSetAccessorTypes; + var privateClassWithWithPrivateSetAccessorTypes = (function () { + function privateClassWithWithPrivateSetAccessorTypes() { + } + Object.defineProperty(privateClassWithWithPrivateSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateSetAccessorTypes, "myPrivateStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPrivateSetAccessorTypes.prototype, "myPrivateMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return privateClassWithWithPrivateSetAccessorTypes; + })(); + var privateClassWithWithPublicSetAccessorTypes = (function () { + function privateClassWithWithPublicSetAccessorTypes() { + } + Object.defineProperty(privateClassWithWithPublicSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicSetAccessorTypes, "myPrivateStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithWithPublicSetAccessorTypes.prototype, "myPrivateMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return privateClassWithWithPublicSetAccessorTypes; + })(); + var publicClassWithPrivateModuleGetAccessorTypes = (function () { + function publicClassWithPrivateModuleGetAccessorTypes() { + } + Object.defineProperty(publicClassWithPrivateModuleGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithPrivateModuleGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithPrivateModuleGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new privateModule.publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithPrivateModuleGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new privateModule.publicClass(); + }, + enumerable: true, + configurable: true + }); + return publicClassWithPrivateModuleGetAccessorTypes; + })(); + publicModuleInGlobal.publicClassWithPrivateModuleGetAccessorTypes = publicClassWithPrivateModuleGetAccessorTypes; + var publicClassWithPrivateModuleSetAccessorTypes = (function () { + function publicClassWithPrivateModuleSetAccessorTypes() { + } + Object.defineProperty(publicClassWithPrivateModuleSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(publicClassWithPrivateModuleSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return publicClassWithPrivateModuleSetAccessorTypes; + })(); + publicModuleInGlobal.publicClassWithPrivateModuleSetAccessorTypes = publicClassWithPrivateModuleSetAccessorTypes; + var privateClassWithPrivateModuleGetAccessorTypes = (function () { + function privateClassWithPrivateModuleGetAccessorTypes() { + } + Object.defineProperty(privateClassWithPrivateModuleGetAccessorTypes, "myPublicStaticMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithPrivateModuleGetAccessorTypes.prototype, "myPublicMethod", { + get: function () { + return null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithPrivateModuleGetAccessorTypes, "myPublicStaticMethod1", { + get: function () { + return new privateModule.publicClass(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithPrivateModuleGetAccessorTypes.prototype, "myPublicMethod1", { + get: function () { + return new privateModule.publicClass(); + }, + enumerable: true, + configurable: true + }); + return privateClassWithPrivateModuleGetAccessorTypes; + })(); + var privateClassWithPrivateModuleSetAccessorTypes = (function () { + function privateClassWithPrivateModuleSetAccessorTypes() { + } + Object.defineProperty(privateClassWithPrivateModuleSetAccessorTypes, "myPublicStaticMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(privateClassWithPrivateModuleSetAccessorTypes.prototype, "myPublicMethod", { + set: function (param) { + }, + enumerable: true, + configurable: true + }); + return privateClassWithPrivateModuleSetAccessorTypes; + })(); +})(publicModuleInGlobal || (publicModuleInGlobal = {})); diff --git a/tests/baselines/reference/privacyGetter.errors.txt b/tests/baselines/reference/privacyGetter.errors.txt deleted file mode 100644 index ea185031726a9..0000000000000 --- a/tests/baselines/reference/privacyGetter.errors.txt +++ /dev/null @@ -1,304 +0,0 @@ -==== tests/cases/compiler/privacyGetter.ts (48 errors) ==== - export module m1 { - export class C1_public { - private f1() { - } - } - - class C2_private { - } - - export class C3_public { - private get p1_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C1_public(); - } - - private set p1_private(m1_c3_p1_arg: C1_public) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - private get p2_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C1_public(); - } - - private set p2_private(m1_c3_p2_arg: C1_public) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - private get p3_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C2_private(); - } - - private set p3_private(m1_c3_p3_arg: C2_private) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - public get p4_public(): C2_private { // error - ~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C2_private(); //error - } - - public set p4_public(m1_c3_p4_arg: C2_private) { // error - ~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - } - - class C4_private { - private get p1_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C1_public(); - } - - private set p1_private(m1_c3_p1_arg: C1_public) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - private get p2_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C1_public(); - } - - private set p2_private(m1_c3_p2_arg: C1_public) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - private get p3_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C2_private(); - } - - private set p3_private(m1_c3_p3_arg: C2_private) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - public get p4_public(): C2_private { - ~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C2_private(); - } - - public set p4_public(m1_c3_p4_arg: C2_private) { - ~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - } - } - - module m2 { - export class m2_C1_public { - private f1() { - } - } - - class m2_C2_private { - } - - export class m2_C3_public { - private get p1_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new m2_C1_public(); - } - - private set p1_private(m2_c3_p1_arg: m2_C1_public) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - private get p2_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new m2_C1_public(); - } - - private set p2_private(m2_c3_p2_arg: m2_C1_public) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - private get p3_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new m2_C2_private(); - } - - private set p3_private(m2_c3_p3_arg: m2_C2_private) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - public get p4_public(): m2_C2_private { - ~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new m2_C2_private(); - } - - public set p4_public(m2_c3_p4_arg: m2_C2_private) { - ~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - } - - class m2_C4_private { - private get p1_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new m2_C1_public(); - } - - private set p1_private(m2_c3_p1_arg: m2_C1_public) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - private get p2_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new m2_C1_public(); - } - - private set p2_private(m2_c3_p2_arg: m2_C1_public) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - private get p3_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new m2_C2_private(); - } - - private set p3_private(m2_c3_p3_arg: m2_C2_private) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - public get p4_public(): m2_C2_private { - ~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new m2_C2_private(); - } - - public set p4_public(m2_c3_p4_arg: m2_C2_private) { - ~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - } - } - - class C5_private { - private f() { - } - } - - export class C6_public { - } - - export class C7_public { - private get p1_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C6_public(); - } - - private set p1_private(m1_c3_p1_arg: C6_public) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - private get p2_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C6_public(); - } - - private set p2_private(m1_c3_p2_arg: C6_public) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - private get p3_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C5_private(); - } - - private set p3_private(m1_c3_p3_arg: C5_private) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - public get p4_public(): C5_private { // error - ~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C5_private(); //error - } - - public set p4_public(m1_c3_p4_arg: C5_private) { // error - ~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - } - - class C8_private { - private get p1_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C6_public(); - } - - private set p1_private(m1_c3_p1_arg: C6_public) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - private get p2_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C6_public(); - } - - private set p2_private(m1_c3_p2_arg: C6_public) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - private get p3_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C5_private(); - } - - private set p3_private(m1_c3_p3_arg: C5_private) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - public get p4_public(): C5_private { - ~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C5_private(); - } - - public set p4_public(m1_c3_p4_arg: C5_private) { - ~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - } \ No newline at end of file diff --git a/tests/baselines/reference/privacyGetter.js b/tests/baselines/reference/privacyGetter.js new file mode 100644 index 0000000000000..d144836e74418 --- /dev/null +++ b/tests/baselines/reference/privacyGetter.js @@ -0,0 +1,506 @@ +//// [privacyGetter.ts] +export module m1 { + export class C1_public { + private f1() { + } + } + + class C2_private { + } + + export class C3_public { + private get p1_private() { + return new C1_public(); + } + + private set p1_private(m1_c3_p1_arg: C1_public) { + } + + private get p2_private() { + return new C1_public(); + } + + private set p2_private(m1_c3_p2_arg: C1_public) { + } + + private get p3_private() { + return new C2_private(); + } + + private set p3_private(m1_c3_p3_arg: C2_private) { + } + + public get p4_public(): C2_private { // error + return new C2_private(); //error + } + + public set p4_public(m1_c3_p4_arg: C2_private) { // error + } + } + + class C4_private { + private get p1_private() { + return new C1_public(); + } + + private set p1_private(m1_c3_p1_arg: C1_public) { + } + + private get p2_private() { + return new C1_public(); + } + + private set p2_private(m1_c3_p2_arg: C1_public) { + } + + private get p3_private() { + return new C2_private(); + } + + private set p3_private(m1_c3_p3_arg: C2_private) { + } + + public get p4_public(): C2_private { + return new C2_private(); + } + + public set p4_public(m1_c3_p4_arg: C2_private) { + } + } +} + +module m2 { + export class m2_C1_public { + private f1() { + } + } + + class m2_C2_private { + } + + export class m2_C3_public { + private get p1_private() { + return new m2_C1_public(); + } + + private set p1_private(m2_c3_p1_arg: m2_C1_public) { + } + + private get p2_private() { + return new m2_C1_public(); + } + + private set p2_private(m2_c3_p2_arg: m2_C1_public) { + } + + private get p3_private() { + return new m2_C2_private(); + } + + private set p3_private(m2_c3_p3_arg: m2_C2_private) { + } + + public get p4_public(): m2_C2_private { + return new m2_C2_private(); + } + + public set p4_public(m2_c3_p4_arg: m2_C2_private) { + } + } + + class m2_C4_private { + private get p1_private() { + return new m2_C1_public(); + } + + private set p1_private(m2_c3_p1_arg: m2_C1_public) { + } + + private get p2_private() { + return new m2_C1_public(); + } + + private set p2_private(m2_c3_p2_arg: m2_C1_public) { + } + + private get p3_private() { + return new m2_C2_private(); + } + + private set p3_private(m2_c3_p3_arg: m2_C2_private) { + } + + public get p4_public(): m2_C2_private { + return new m2_C2_private(); + } + + public set p4_public(m2_c3_p4_arg: m2_C2_private) { + } + } +} + +class C5_private { + private f() { + } +} + +export class C6_public { +} + +export class C7_public { + private get p1_private() { + return new C6_public(); + } + + private set p1_private(m1_c3_p1_arg: C6_public) { + } + + private get p2_private() { + return new C6_public(); + } + + private set p2_private(m1_c3_p2_arg: C6_public) { + } + + private get p3_private() { + return new C5_private(); + } + + private set p3_private(m1_c3_p3_arg: C5_private) { + } + + public get p4_public(): C5_private { // error + return new C5_private(); //error + } + + public set p4_public(m1_c3_p4_arg: C5_private) { // error + } +} + +class C8_private { + private get p1_private() { + return new C6_public(); + } + + private set p1_private(m1_c3_p1_arg: C6_public) { + } + + private get p2_private() { + return new C6_public(); + } + + private set p2_private(m1_c3_p2_arg: C6_public) { + } + + private get p3_private() { + return new C5_private(); + } + + private set p3_private(m1_c3_p3_arg: C5_private) { + } + + public get p4_public(): C5_private { + return new C5_private(); + } + + public set p4_public(m1_c3_p4_arg: C5_private) { + } +} + +//// [privacyGetter.js] +define(["require", "exports"], function (require, exports) { + (function (m1) { + var C1_public = (function () { + function C1_public() { + } + C1_public.prototype.f1 = function () { + }; + return C1_public; + })(); + m1.C1_public = C1_public; + var C2_private = (function () { + function C2_private() { + } + return C2_private; + })(); + var C3_public = (function () { + function C3_public() { + } + Object.defineProperty(C3_public.prototype, "p1_private", { + get: function () { + return new C1_public(); + }, + set: function (m1_c3_p1_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(C3_public.prototype, "p2_private", { + get: function () { + return new C1_public(); + }, + set: function (m1_c3_p2_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(C3_public.prototype, "p3_private", { + get: function () { + return new C2_private(); + }, + set: function (m1_c3_p3_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(C3_public.prototype, "p4_public", { + get: function () { + return new C2_private(); + }, + set: function (m1_c3_p4_arg) { + }, + enumerable: true, + configurable: true + }); + return C3_public; + })(); + m1.C3_public = C3_public; + var C4_private = (function () { + function C4_private() { + } + Object.defineProperty(C4_private.prototype, "p1_private", { + get: function () { + return new C1_public(); + }, + set: function (m1_c3_p1_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(C4_private.prototype, "p2_private", { + get: function () { + return new C1_public(); + }, + set: function (m1_c3_p2_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(C4_private.prototype, "p3_private", { + get: function () { + return new C2_private(); + }, + set: function (m1_c3_p3_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(C4_private.prototype, "p4_public", { + get: function () { + return new C2_private(); + }, + set: function (m1_c3_p4_arg) { + }, + enumerable: true, + configurable: true + }); + return C4_private; + })(); + })(exports.m1 || (exports.m1 = {})); + var m1 = exports.m1; + var m2; + (function (m2) { + var m2_C1_public = (function () { + function m2_C1_public() { + } + m2_C1_public.prototype.f1 = function () { + }; + return m2_C1_public; + })(); + m2.m2_C1_public = m2_C1_public; + var m2_C2_private = (function () { + function m2_C2_private() { + } + return m2_C2_private; + })(); + var m2_C3_public = (function () { + function m2_C3_public() { + } + Object.defineProperty(m2_C3_public.prototype, "p1_private", { + get: function () { + return new m2_C1_public(); + }, + set: function (m2_c3_p1_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(m2_C3_public.prototype, "p2_private", { + get: function () { + return new m2_C1_public(); + }, + set: function (m2_c3_p2_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(m2_C3_public.prototype, "p3_private", { + get: function () { + return new m2_C2_private(); + }, + set: function (m2_c3_p3_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(m2_C3_public.prototype, "p4_public", { + get: function () { + return new m2_C2_private(); + }, + set: function (m2_c3_p4_arg) { + }, + enumerable: true, + configurable: true + }); + return m2_C3_public; + })(); + m2.m2_C3_public = m2_C3_public; + var m2_C4_private = (function () { + function m2_C4_private() { + } + Object.defineProperty(m2_C4_private.prototype, "p1_private", { + get: function () { + return new m2_C1_public(); + }, + set: function (m2_c3_p1_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(m2_C4_private.prototype, "p2_private", { + get: function () { + return new m2_C1_public(); + }, + set: function (m2_c3_p2_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(m2_C4_private.prototype, "p3_private", { + get: function () { + return new m2_C2_private(); + }, + set: function (m2_c3_p3_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(m2_C4_private.prototype, "p4_public", { + get: function () { + return new m2_C2_private(); + }, + set: function (m2_c3_p4_arg) { + }, + enumerable: true, + configurable: true + }); + return m2_C4_private; + })(); + })(m2 || (m2 = {})); + var C5_private = (function () { + function C5_private() { + } + C5_private.prototype.f = function () { + }; + return C5_private; + })(); + var C6_public = (function () { + function C6_public() { + } + return C6_public; + })(); + exports.C6_public = C6_public; + var C7_public = (function () { + function C7_public() { + } + Object.defineProperty(C7_public.prototype, "p1_private", { + get: function () { + return new C6_public(); + }, + set: function (m1_c3_p1_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(C7_public.prototype, "p2_private", { + get: function () { + return new C6_public(); + }, + set: function (m1_c3_p2_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(C7_public.prototype, "p3_private", { + get: function () { + return new C5_private(); + }, + set: function (m1_c3_p3_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(C7_public.prototype, "p4_public", { + get: function () { + return new C5_private(); + }, + set: function (m1_c3_p4_arg) { + }, + enumerable: true, + configurable: true + }); + return C7_public; + })(); + exports.C7_public = C7_public; + var C8_private = (function () { + function C8_private() { + } + Object.defineProperty(C8_private.prototype, "p1_private", { + get: function () { + return new C6_public(); + }, + set: function (m1_c3_p1_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(C8_private.prototype, "p2_private", { + get: function () { + return new C6_public(); + }, + set: function (m1_c3_p2_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(C8_private.prototype, "p3_private", { + get: function () { + return new C5_private(); + }, + set: function (m1_c3_p3_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(C8_private.prototype, "p4_public", { + get: function () { + return new C5_private(); + }, + set: function (m1_c3_p4_arg) { + }, + enumerable: true, + configurable: true + }); + return C8_private; + })(); +}); diff --git a/tests/baselines/reference/privacyGloGetter.errors.txt b/tests/baselines/reference/privacyGloGetter.errors.txt deleted file mode 100644 index d23ed7d149167..0000000000000 --- a/tests/baselines/reference/privacyGloGetter.errors.txt +++ /dev/null @@ -1,129 +0,0 @@ -==== tests/cases/compiler/privacyGloGetter.ts (20 errors) ==== - module m1 { - export class C1_public { - private f1() { - } - } - - class C2_private { - } - - export class C3_public { - private get p1_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C1_public(); - } - - private set p1_private(m1_c3_p1_arg: C1_public) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - private get p2_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C1_public(); - } - - private set p2_private(m1_c3_p2_arg: C1_public) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - private get p3_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C2_private(); - } - - private set p3_private(m1_c3_p3_arg: C2_private) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - public get p4_public(): C2_private { // error - ~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C2_private(); //error - } - - public set p4_public(m1_c3_p4_arg: C2_private) { // error - ~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - } - - class C4_private { - private get p1_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C1_public(); - } - - private set p1_private(m1_c3_p1_arg: C1_public) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - private get p2_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C1_public(); - } - - private set p2_private(m1_c3_p2_arg: C1_public) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - private get p3_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C2_private(); - } - - private set p3_private(m1_c3_p3_arg: C2_private) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - public get p4_public(): C2_private { - ~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C2_private(); - } - - public set p4_public(m1_c3_p4_arg: C2_private) { - ~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - } - } - - class C6_public { - } - - class C7_public { - private get p1_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C6_public(); - } - - private set p1_private(m1_c3_p1_arg: C6_public) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - - private get p2_private() { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - return new C6_public(); - } - - private set p2_private(m1_c3_p2_arg: C6_public) { - ~~~~~~~~~~ -!!! Accessors are only available when targeting ECMAScript 5 and higher. - } - } \ No newline at end of file diff --git a/tests/baselines/reference/privacyGloGetter.js b/tests/baselines/reference/privacyGloGetter.js new file mode 100644 index 0000000000000..9f65712805e9d --- /dev/null +++ b/tests/baselines/reference/privacyGloGetter.js @@ -0,0 +1,218 @@ +//// [privacyGloGetter.ts] +module m1 { + export class C1_public { + private f1() { + } + } + + class C2_private { + } + + export class C3_public { + private get p1_private() { + return new C1_public(); + } + + private set p1_private(m1_c3_p1_arg: C1_public) { + } + + private get p2_private() { + return new C1_public(); + } + + private set p2_private(m1_c3_p2_arg: C1_public) { + } + + private get p3_private() { + return new C2_private(); + } + + private set p3_private(m1_c3_p3_arg: C2_private) { + } + + public get p4_public(): C2_private { // error + return new C2_private(); //error + } + + public set p4_public(m1_c3_p4_arg: C2_private) { // error + } + } + + class C4_private { + private get p1_private() { + return new C1_public(); + } + + private set p1_private(m1_c3_p1_arg: C1_public) { + } + + private get p2_private() { + return new C1_public(); + } + + private set p2_private(m1_c3_p2_arg: C1_public) { + } + + private get p3_private() { + return new C2_private(); + } + + private set p3_private(m1_c3_p3_arg: C2_private) { + } + + public get p4_public(): C2_private { + return new C2_private(); + } + + public set p4_public(m1_c3_p4_arg: C2_private) { + } + } +} + +class C6_public { +} + +class C7_public { + private get p1_private() { + return new C6_public(); + } + + private set p1_private(m1_c3_p1_arg: C6_public) { + } + + private get p2_private() { + return new C6_public(); + } + + private set p2_private(m1_c3_p2_arg: C6_public) { + } +} + +//// [privacyGloGetter.js] +var m1; +(function (m1) { + var C1_public = (function () { + function C1_public() { + } + C1_public.prototype.f1 = function () { + }; + return C1_public; + })(); + m1.C1_public = C1_public; + var C2_private = (function () { + function C2_private() { + } + return C2_private; + })(); + var C3_public = (function () { + function C3_public() { + } + Object.defineProperty(C3_public.prototype, "p1_private", { + get: function () { + return new C1_public(); + }, + set: function (m1_c3_p1_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(C3_public.prototype, "p2_private", { + get: function () { + return new C1_public(); + }, + set: function (m1_c3_p2_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(C3_public.prototype, "p3_private", { + get: function () { + return new C2_private(); + }, + set: function (m1_c3_p3_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(C3_public.prototype, "p4_public", { + get: function () { + return new C2_private(); + }, + set: function (m1_c3_p4_arg) { + }, + enumerable: true, + configurable: true + }); + return C3_public; + })(); + m1.C3_public = C3_public; + var C4_private = (function () { + function C4_private() { + } + Object.defineProperty(C4_private.prototype, "p1_private", { + get: function () { + return new C1_public(); + }, + set: function (m1_c3_p1_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(C4_private.prototype, "p2_private", { + get: function () { + return new C1_public(); + }, + set: function (m1_c3_p2_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(C4_private.prototype, "p3_private", { + get: function () { + return new C2_private(); + }, + set: function (m1_c3_p3_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(C4_private.prototype, "p4_public", { + get: function () { + return new C2_private(); + }, + set: function (m1_c3_p4_arg) { + }, + enumerable: true, + configurable: true + }); + return C4_private; + })(); +})(m1 || (m1 = {})); +var C6_public = (function () { + function C6_public() { + } + return C6_public; +})(); +var C7_public = (function () { + function C7_public() { + } + Object.defineProperty(C7_public.prototype, "p1_private", { + get: function () { + return new C6_public(); + }, + set: function (m1_c3_p1_arg) { + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(C7_public.prototype, "p2_private", { + get: function () { + return new C6_public(); + }, + set: function (m1_c3_p2_arg) { + }, + enumerable: true, + configurable: true + }); + return C7_public; +})(); diff --git a/tests/cases/compiler/privacyAccessorDeclFile.ts b/tests/cases/compiler/privacyAccessorDeclFile.ts new file mode 100644 index 0000000000000..25d590c0d37b0 --- /dev/null +++ b/tests/cases/compiler/privacyAccessorDeclFile.ts @@ -0,0 +1,1061 @@ +// @target: ES5 +// @module: commonjs +// @declaration: true + +// @Filename:privacyAccessorDeclFile_externalModule.ts +class privateClass { +} + +export class publicClass { +} + +export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { // Error + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { // Error + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { // Error + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { // Error + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } +} + +export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } +} + +class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } +} + +class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } +} + +export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { // Error + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { // Error + } + private set myPrivateMethod(param: privateClass) { + } +} + +export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } +} + +class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } +} + +class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } +} + +export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { // Error + return null; + } + get myPublicMethod(): privateModule.publicClass { // Error + return null; + } + static get myPublicStaticMethod1() { // Error + return new privateModule.publicClass(); + } + get myPublicMethod1() { // Error + return new privateModule.publicClass(); + } +} + +export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { // Error + } + set myPublicMethod(param: privateModule.publicClass) { // Error + } +} + +class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } +} + +class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } +} + +export module publicModule { + class privateClass { + } + + export class publicClass { + } + export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { // Error + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { // Error + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { // Error + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { // Error + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { // Error + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { // Error + } + private set myPrivateMethod(param: privateClass) { + } + } + + export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { // Error + return null; + } + get myPublicMethod(): privateModule.publicClass { // Error + return null; + } + static get myPublicStaticMethod1() { // Error + return new privateModule.publicClass(); + } + get myPublicMethod1() { // Error + return new privateModule.publicClass(); + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { // Error + } + set myPublicMethod(param: privateModule.publicClass) { // Error + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } +} + +module privateModule { + class privateClass { + } + + export class publicClass { + } + export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } +} + +// @Filename: privacyAccessorDeclFile_GlobalFile.ts +class publicClassInGlobal { +} + +class publicClassInGlobalWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClassInGlobal { + return null; + } + private static get myPrivateStaticMethod(): publicClassInGlobal { + return null; + } + get myPublicMethod(): publicClassInGlobal { + return null; + } + private get myPrivateMethod(): publicClassInGlobal { + return null; + } + static get myPublicStaticMethod1() { + return new publicClassInGlobal(); + } + private static get myPrivateStaticMethod1() { + return new publicClassInGlobal(); + } + get myPublicMethod1() { + return new publicClassInGlobal(); + } + private get myPrivateMethod1() { + return new publicClassInGlobal(); + } +} + +class publicClassInGlobalWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClassInGlobal) { + } + private static set myPrivateStaticMethod(param: publicClassInGlobal) { + } + set myPublicMethod(param: publicClassInGlobal) { + } + private set myPrivateMethod(param: publicClassInGlobal) { + } +} + +module publicModuleInGlobal { + class privateClass { + } + + export class publicClass { + } + + module privateModule { + class privateClass { + } + + export class publicClass { + } + export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } + } + + export class publicClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { // Error + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { // Error + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { // Error + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { // Error + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + export class publicClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + class privateClassWithWithPrivateGetAccessorTypes { + static get myPublicStaticMethod(): privateClass { + return null; + } + private static get myPrivateStaticMethod(): privateClass { + return null; + } + get myPublicMethod(): privateClass { + return null; + } + private get myPrivateMethod(): privateClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateClass(); + } + private static get myPrivateStaticMethod1() { + return new privateClass(); + } + get myPublicMethod1() { + return new privateClass(); + } + private get myPrivateMethod1() { + return new privateClass(); + } + } + + class privateClassWithWithPublicGetAccessorTypes { + static get myPublicStaticMethod(): publicClass { + return null; + } + private static get myPrivateStaticMethod(): publicClass { + return null; + } + get myPublicMethod(): publicClass { + return null; + } + private get myPrivateMethod(): publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new publicClass(); + } + private static get myPrivateStaticMethod1() { + return new publicClass(); + } + get myPublicMethod1() { + return new publicClass(); + } + private get myPrivateMethod1() { + return new publicClass(); + } + } + + export class publicClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { // Error + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { // Error + } + private set myPrivateMethod(param: privateClass) { + } + } + + export class publicClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + class privateClassWithWithPrivateSetAccessorTypes { + static set myPublicStaticMethod(param: privateClass) { + } + private static set myPrivateStaticMethod(param: privateClass) { + } + set myPublicMethod(param: privateClass) { + } + private set myPrivateMethod(param: privateClass) { + } + } + + class privateClassWithWithPublicSetAccessorTypes { + static set myPublicStaticMethod(param: publicClass) { + } + private static set myPrivateStaticMethod(param: publicClass) { + } + set myPublicMethod(param: publicClass) { + } + private set myPrivateMethod(param: publicClass) { + } + } + + export class publicClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { // Error + return null; + } + get myPublicMethod(): privateModule.publicClass { // Error + return null; + } + static get myPublicStaticMethod1() { // Error + return new privateModule.publicClass(); + } + get myPublicMethod1() { // Error + return new privateModule.publicClass(); + } + } + + export class publicClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { // Error + } + set myPublicMethod(param: privateModule.publicClass) { // Error + } + } + + class privateClassWithPrivateModuleGetAccessorTypes { + static get myPublicStaticMethod(): privateModule.publicClass { + return null; + } + get myPublicMethod(): privateModule.publicClass { + return null; + } + static get myPublicStaticMethod1() { + return new privateModule.publicClass(); + } + get myPublicMethod1() { + return new privateModule.publicClass(); + } + } + + class privateClassWithPrivateModuleSetAccessorTypes { + static set myPublicStaticMethod(param: privateModule.publicClass) { + } + set myPublicMethod(param: privateModule.publicClass) { + } + } +} \ No newline at end of file diff --git a/tests/cases/compiler/privacyGetter.ts b/tests/cases/compiler/privacyGetter.ts index 65b6303833c9b..aab0cb22a0e72 100644 --- a/tests/cases/compiler/privacyGetter.ts +++ b/tests/cases/compiler/privacyGetter.ts @@ -1,3 +1,4 @@ +// @target: ES5 //@module: amd export module m1 { export class C1_public { diff --git a/tests/cases/compiler/privacyGloGetter.ts b/tests/cases/compiler/privacyGloGetter.ts index 5ebca909ad9f2..c892c2e75daf9 100644 --- a/tests/cases/compiler/privacyGloGetter.ts +++ b/tests/cases/compiler/privacyGloGetter.ts @@ -1,3 +1,4 @@ +// @target: ES5 module m1 { export class C1_public { private f1() {