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:
committed by
commit-bot@chromium.org
parent
28880128a2
commit
0dca599153
@@ -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, "
|
||||
|
||||
Reference in New Issue
Block a user