You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
else if (node.parent.kind === SyntaxKind.InterfaceDeclaration) {
11128
-
if (checkGrammarForNonSymbolComputedProperty(node.name, Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_Symbol)) {
11128
+
if (checkGrammarForNonSymbolComputedProperty(node.name, Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol)) {
11129
11129
return true;
11130
11130
}
11131
11131
}
11132
11132
else if (node.parent.kind === SyntaxKind.TypeLiteral) {
11133
-
if (checkGrammarForNonSymbolComputedProperty(node.name, Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_Symbol)) {
11133
+
if (checkGrammarForNonSymbolComputedProperty(node.name, Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol)) {
Copy file name to clipboardExpand all lines: src/compiler/diagnosticInformationMap.generated.ts
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ module ts {
19
19
An_index_signature_parameter_cannot_have_an_initializer: {code: 1020,category: DiagnosticCategory.Error,key: "An index signature parameter cannot have an initializer."},
20
20
An_index_signature_must_have_a_type_annotation: {code: 1021,category: DiagnosticCategory.Error,key: "An index signature must have a type annotation."},
21
21
An_index_signature_parameter_must_have_a_type_annotation: {code: 1022,category: DiagnosticCategory.Error,key: "An index signature parameter must have a type annotation."},
22
-
An_index_signature_parameter_type_must_be_string_number_or_Symbol: {code: 1023,category: DiagnosticCategory.Error,key: "An index signature parameter type must be 'string', 'number', or 'Symbol'."},
22
+
An_index_signature_parameter_type_must_be_string_number_or_symbol: {code: 1023,category: DiagnosticCategory.Error,key: "An index signature parameter type must be 'string', 'number', or 'symbol'."},
23
23
A_class_or_interface_declaration_can_only_have_one_extends_clause: {code: 1024,category: DiagnosticCategory.Error,key: "A class or interface declaration can only have one 'extends' clause."},
24
24
An_extends_clause_must_precede_an_implements_clause: {code: 1025,category: DiagnosticCategory.Error,key: "An 'extends' clause must precede an 'implements' clause."},
25
25
A_class_can_only_extend_a_single_class: {code: 1026,category: DiagnosticCategory.Error,key: "A class can only extend a single class."},
@@ -123,12 +123,12 @@ module ts {
123
123
An_object_member_cannot_be_declared_optional: {code: 1162,category: DiagnosticCategory.Error,key: "An object member cannot be declared optional."},
124
124
yield_expression_must_be_contained_within_a_generator_declaration: {code: 1163,category: DiagnosticCategory.Error,key: "'yield' expression must be contained_within a generator declaration."},
125
125
Computed_property_names_are_not_allowed_in_enums: {code: 1164,category: DiagnosticCategory.Error,key: "Computed property names are not allowed in enums."},
126
-
A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_Symbol: {code: 1165,category: DiagnosticCategory.Error,key: "A computed property name in an ambient context must directly refer to a built-in Symbol."},
127
-
A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_Symbol: {code: 1166,category: DiagnosticCategory.Error,key: "A computed property name in a class property declaration must directly refer to a built-in Symbol."},
126
+
A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol: {code: 1165,category: DiagnosticCategory.Error,key: "A computed property name in an ambient context must directly refer to a built-in symbol."},
127
+
A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol: {code: 1166,category: DiagnosticCategory.Error,key: "A computed property name in a class property declaration must directly refer to a built-in symbol."},
128
128
Computed_property_names_are_only_available_when_targeting_ECMAScript_6_and_higher: {code: 1167,category: DiagnosticCategory.Error,key: "Computed property names are only available when targeting ECMAScript 6 and higher."},
129
-
A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_Symbol: {code: 1168,category: DiagnosticCategory.Error,key: "A computed property name in a method overload must directly refer to a built-in Symbol."},
130
-
A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_Symbol: {code: 1169,category: DiagnosticCategory.Error,key: "A computed property name in an interface must directly refer to a built-in Symbol."},
131
-
A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_Symbol: {code: 1170,category: DiagnosticCategory.Error,key: "A computed property name in a type literal must directly refer to a built-in Symbol."},
129
+
A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol: {code: 1168,category: DiagnosticCategory.Error,key: "A computed property name in a method overload must directly refer to a built-in symbol."},
130
+
A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol: {code: 1169,category: DiagnosticCategory.Error,key: "A computed property name in an interface must directly refer to a built-in symbol."},
131
+
A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol: {code: 1170,category: DiagnosticCategory.Error,key: "A computed property name in a type literal must directly refer to a built-in symbol."},
132
132
A_comma_expression_is_not_allowed_in_a_computed_property_name: {code: 1171,category: DiagnosticCategory.Error,key: "A comma expression is not allowed in a computed property name."},
A_rest_element_cannot_have_an_initializer: {code: 1186,category: DiagnosticCategory.Error,key: "A rest element cannot have an initializer."},
149
149
A_parameter_property_may_not_be_a_binding_pattern: {code: 1187,category: DiagnosticCategory.Error,key: "A parameter property may not be a binding pattern."},
150
-
Symbol_indexers_are_only_available_when_targeting_ECMAScript_6_and_higher: {code: 1188,category: DiagnosticCategory.Error,key: "'Symbol' indexers are only available when targeting ECMAScript 6 and higher.",isEarly: true},
150
+
symbol_indexers_are_only_available_when_targeting_ECMAScript_6_and_higher: {code: 1188,category: DiagnosticCategory.Error,key: "'symbol' indexers are only available when targeting ECMAScript 6 and higher.",isEarly: true},
Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: {code: 2301,category: DiagnosticCategory.Error,key: "Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."},
153
153
Static_members_cannot_reference_class_type_parameters: {code: 2302,category: DiagnosticCategory.Error,key: "Static members cannot reference class type parameters."},
@@ -300,10 +300,10 @@ module ts {
300
300
Type_0_is_not_an_array_type: {code: 2461,category: DiagnosticCategory.Error,key: "Type '{0}' is not an array type."},
301
301
A_rest_element_must_be_last_in_an_array_destructuring_pattern: {code: 2462,category: DiagnosticCategory.Error,key: "A rest element must be last in an array destructuring pattern"},
302
302
A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature: {code: 2463,category: DiagnosticCategory.Error,key: "A binding pattern parameter cannot be optional in an implementation signature."},
303
-
A_computed_property_name_must_be_of_type_string_number_Symbol_or_any: {code: 2464,category: DiagnosticCategory.Error,key: "A computed property name must be of type 'string', 'number', 'Symbol', or 'any'."},
303
+
A_computed_property_name_must_be_of_type_string_number_symbol_or_any: {code: 2464,category: DiagnosticCategory.Error,key: "A computed property name must be of type 'string', 'number', 'symbol', or 'any'."},
304
304
this_cannot_be_referenced_in_a_computed_property_name: {code: 2465,category: DiagnosticCategory.Error,key: "'this' cannot be referenced in a computed property name."},
305
305
super_cannot_be_referenced_in_a_computed_property_name: {code: 2466,category: DiagnosticCategory.Error,key: "'super' cannot be referenced in a computed property name."},
306
-
A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type: {code: 2466,category: DiagnosticCategory.Error,key: "A computed property name cannot reference a type parameter from its containing type."},
306
+
A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type: {code: 2467,category: DiagnosticCategory.Error,key: "A computed property name cannot reference a type parameter from its containing type."},
307
307
Cannot_find_global_value_0: {code: 2468,category: DiagnosticCategory.Error,key: "Cannot find global value '{0}'."},
308
308
Import_declaration_0_is_using_private_name_1: {code: 4000,category: DiagnosticCategory.Error,key: "Import declaration '{0}' is using private name '{1}'."},
309
309
Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: {code: 4002,category: DiagnosticCategory.Error,key: "Type parameter '{0}' of exported class has or is using private name '{1}'."},
0 commit comments