From d129a7a68013edf48e94bb6563bd47590b95006d Mon Sep 17 00:00:00 2001 From: dcode Date: Fri, 23 Jul 2021 16:43:56 +0200 Subject: [PATCH] Renumber now-pedantic diagnostic from 232 to 907 --- src/diagnosticMessages.generated.ts | 4 ++-- src/diagnosticMessages.json | 2 +- tests/compiler/export-generic.json | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/diagnosticMessages.generated.ts b/src/diagnosticMessages.generated.ts index 6690f6d67e..0f0f3a00d1 100644 --- a/src/diagnosticMessages.generated.ts +++ b/src/diagnosticMessages.generated.ts @@ -46,7 +46,6 @@ export enum DiagnosticCode { Property_0_only_has_a_setter_and_is_missing_a_getter = 229, _0_keyword_cannot_be_used_here = 230, A_class_with_a_constructor_explicitly_returning_something_else_than_this_must_be_final = 231, - Exported_generic_function_or_class_has_no_concrete_instances = 232, Property_0_is_always_assigned_before_being_used = 233, Expression_refers_to_a_static_element_that_does_not_compile_to_a_value_at_runtime = 234, Importing_the_table_disables_some_indirect_call_optimizations = 901, @@ -55,6 +54,7 @@ export enum DiagnosticCode { Indexed_access_may_involve_bounds_checking = 904, Explicitly_returning_constructor_drops_this_allocation = 905, Unnecessary_definite_assignment = 906, + Exported_generic_function_or_class_has_no_concrete_instances = 907, Unterminated_string_literal = 1002, Identifier_expected = 1003, _0_expected = 1005, @@ -228,7 +228,6 @@ export function diagnosticCodeToString(code: DiagnosticCode): string { case 229: return "Property '{0}' only has a setter and is missing a getter."; case 230: return "'{0}' keyword cannot be used here."; case 231: return "A class with a constructor explicitly returning something else than 'this' must be '@final'."; - case 232: return "Exported generic function or class has no concrete instances."; case 233: return "Property '{0}' is always assigned before being used."; case 234: return "Expression refers to a static element that does not compile to a value at runtime."; case 901: return "Importing the table disables some indirect call optimizations."; @@ -237,6 +236,7 @@ export function diagnosticCodeToString(code: DiagnosticCode): string { case 904: return "Indexed access may involve bounds checking."; case 905: return "Explicitly returning constructor drops 'this' allocation."; case 906: return "Unnecessary definite assignment."; + case 907: return "Exported generic function or class has no concrete instances."; case 1002: return "Unterminated string literal."; case 1003: return "Identifier expected."; case 1005: return "'{0}' expected."; diff --git a/src/diagnosticMessages.json b/src/diagnosticMessages.json index 8b28f67720..8a76e1eb12 100644 --- a/src/diagnosticMessages.json +++ b/src/diagnosticMessages.json @@ -41,7 +41,6 @@ "Property '{0}' only has a setter and is missing a getter.": 229, "'{0}' keyword cannot be used here.": 230, "A class with a constructor explicitly returning something else than 'this' must be '@final'.": 231, - "Exported generic function or class has no concrete instances.": 232, "Property '{0}' is always assigned before being used.": 233, "Expression refers to a static element that does not compile to a value at runtime.": 234, @@ -51,6 +50,7 @@ "Indexed access may involve bounds checking.": 904, "Explicitly returning constructor drops 'this' allocation.": 905, "Unnecessary definite assignment.": 906, + "Exported generic function or class has no concrete instances.": 907, "Unterminated string literal.": 1002, "Identifier expected.": 1003, diff --git a/tests/compiler/export-generic.json b/tests/compiler/export-generic.json index 9df2db436e..b7b9b0b6e2 100644 --- a/tests/compiler/export-generic.json +++ b/tests/compiler/export-generic.json @@ -3,15 +3,15 @@ "--pedantic" ], "stderr": [ - "AS232: Exported generic function or class has no concrete instances.", + "AS907: Exported generic function or class has no concrete instances.", "export function testFunction", - "AS232: Exported generic function or class has no concrete instances.", + "AS907: Exported generic function or class has no concrete instances.", "export class TestClass", - "AS232: Exported generic function or class has no concrete instances.", + "AS907: Exported generic function or class has no concrete instances.", "public testMethod()", - "AS232: Exported generic function or class has no concrete instances.", + "AS907: Exported generic function or class has no concrete instances.", "export function testNamespacedFunction", - "AS232: Exported generic function or class has no concrete instances.", + "AS907: Exported generic function or class has no concrete instances.", "export class TestNamespacedClass" ] }