Make 'extends' error message uniform.

Refer to "'extends' clause" instead of "Extends clause".
This commit is contained in:
Nathan Shively-Sanders
2017-02-14 15:04:31 -08:00
parent d1a972fcdd
commit c2b2c78c4a
8 changed files with 53 additions and 53 deletions

View File

@@ -317,7 +317,7 @@ namespace ts {
function reportIllegalExtends() {
if (errorNameNode) {
reportedDeclarationError = true;
emitterDiagnostics.add(createDiagnosticForNode(errorNameNode, Diagnostics.Extends_clause_of_exported_class_0_refers_to_a_type_whose_name_cannot_be_referenced,
emitterDiagnostics.add(createDiagnosticForNode(errorNameNode, Diagnostics.extends_clause_of_exported_class_0_refers_to_a_type_whose_name_cannot_be_referenced,
declarationNameToString(errorNameNode)));
}
}
@@ -1107,11 +1107,11 @@ namespace ts {
// Class or Interface implemented/extended is inaccessible
diagnosticMessage = isImplementsList ?
Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1 :
Diagnostics.Extends_clause_of_exported_class_0_has_or_is_using_private_name_1;
Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1;
}
else {
// interface is inaccessible
diagnosticMessage = Diagnostics.Extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;
diagnosticMessage = Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;
}
return {

View File

@@ -2096,11 +2096,11 @@
"category": "Error",
"code": 4019
},
"Extends clause of exported class '{0}' has or is using private name '{1}'.": {
"'extends' clause of exported class '{0}' has or is using private name '{1}'.": {
"category": "Error",
"code": 4020
},
"Extends clause of exported interface '{0}' has or is using private name '{1}'.": {
"'extends' clause of exported interface '{0}' has or is using private name '{1}'.": {
"category": "Error",
"code": 4022
},
@@ -2352,7 +2352,7 @@
"category": "Error",
"code": 4092
},
"Extends clause of exported class '{0}' refers to a type whose name cannot be referenced.": {
"'extends' clause of exported class '{0}' refers to a type whose name cannot be referenced.": {
"category": "Error",
"code": 4093
},
@@ -3169,7 +3169,7 @@
"category": "Error",
"code": 8016
},
"Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clauses.": {
"Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause.": {
"category": "Error",
"code": 9002
},