@@ -29,6 +29,7 @@ export enum DiagnosticCode {
2929 Constructor_of_class_0_must_not_require_any_arguments = 216 ,
3030 Function_0_cannot_be_inlined_into_itself = 217 ,
3131 Cannot_access_method_0_without_calling_it_as_it_requires_this_to_be_set = 218 ,
32+ Optional_properties_are_not_supported = 219 ,
3233 Unterminated_string_literal = 1002 ,
3334 Identifier_expected = 1003 ,
3435 _0_expected = 1005 ,
@@ -81,6 +82,7 @@ export enum DiagnosticCode {
8182 Decorators_are_not_valid_here = 1206 ,
8283 _abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration = 1242 ,
8384 Method_0_cannot_have_an_implementation_because_it_is_marked_abstract = 1245 ,
85+ A_definite_assignment_assertion_is_not_permitted_in_this_context = 1255 ,
8486 A_class_may_only_extend_another_class = 1311 ,
8587 A_parameter_property_cannot_be_declared_using_a_rest_parameter = 1317 ,
8688 Duplicate_identifier_0 = 2300 ,
@@ -149,6 +151,7 @@ export function diagnosticCodeToString(code: DiagnosticCode): string {
149151 case 216 : return "Constructor of class '{0}' must not require any arguments." ;
150152 case 217 : return "Function '{0}' cannot be inlined into itself." ;
151153 case 218 : return "Cannot access method '{0}' without calling it as it requires 'this' to be set." ;
154+ case 219 : return "Optional properties are not supported." ;
152155 case 1002 : return "Unterminated string literal." ;
153156 case 1003 : return "Identifier expected." ;
154157 case 1005 : return "'{0}' expected." ;
@@ -201,6 +204,7 @@ export function diagnosticCodeToString(code: DiagnosticCode): string {
201204 case 1206 : return "Decorators are not valid here." ;
202205 case 1242 : return "'abstract' modifier can only appear on a class, method, or property declaration." ;
203206 case 1245 : return "Method '{0}' cannot have an implementation because it is marked abstract." ;
207+ case 1255 : return "A definite assignment assertion '!' is not permitted in this context." ;
204208 case 1311 : return "A class may only extend another class." ;
205209 case 1317 : return "A parameter property cannot be declared using a rest parameter." ;
206210 case 2300 : return "Duplicate identifier '{0}'." ;
0 commit comments