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 <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
Brian Wilkerson
2020-02-24 17:59:56 +00:00
committed by commit-bot@chromium.org
parent 28880128a2
commit 0dca599153
+2 -3
View File
@@ -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, "