From 0dca599153df56af78e130900b44facd3aae8e02 Mon Sep 17 00:00:00 2001 From: Brian Wilkerson Date: Mon, 24 Feb 2020 17:59:56 +0000 Subject: [PATCH] Unify diagnostic names for uninitialized non-nullable fields Change-Id: I1aa63cbb6f8aa8f3496df348dc1bc415ae8b1373 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/136980 Reviewed-by: Konstantin Shcheglov Commit-Queue: Brian Wilkerson --- pkg/analyzer/lib/src/error/codes.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/analyzer/lib/src/error/codes.dart b/pkg/analyzer/lib/src/error/codes.dart index b3380464fb7..ba526e71d19 100644 --- a/pkg/analyzer/lib/src/error/codes.dart +++ b/pkg/analyzer/lib/src/error/codes.dart @@ -4443,13 +4443,12 @@ class CompileTimeErrorCode extends AnalyzerErrorCode { * marked with the `late` modifier. * * Parameters: - * - * Parameters: * 0: the name of the field that is not initialized */ static const CompileTimeErrorCode NOT_INITIALIZED_NON_NULLABLE_INSTANCE_FIELD_CONSTRUCTOR = - CompileTimeErrorCode( + CompileTimeErrorCodeWithUniqueName( + 'NOT_INITIALIZED_NON_NULLABLE_INSTANCE_FIELD', 'NOT_INITIALIZED_NON_NULLABLE_INSTANCE_FIELD_CONSTRUCTOR', "Non-nullable instance field '{0}' must be initialized.", correction: "Try adding an initializer expression, "