analyzer: Tidy deferred_import_of_extension message
Fixes https://github.com/dart-lang/sdk/issues/56716 Change-Id: I9ce1ba3139a3eb388b3ceb18a898069531ccfa3a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/496662 Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
committed by
Samuel Rawlins
parent
299dabac5f
commit
877ded1a38
@@ -3259,10 +3259,12 @@ deferredAfterPrefix = DiagnosticWithoutArgumentsImpl(
|
||||
const DiagnosticWithoutArguments deferredImportOfExtension =
|
||||
DiagnosticWithoutArgumentsImpl(
|
||||
name: 'deferred_import_of_extension',
|
||||
problemMessage: "Imports of deferred libraries must hide all extensions.",
|
||||
problemMessage:
|
||||
"Deferred library imports must hide all extension declarations.",
|
||||
correctionMessage:
|
||||
"Try adding either a show combinator listing the names you need to "
|
||||
"reference or a hide combinator listing all of the extensions.",
|
||||
"reference or a hide combinator listing all of the extension "
|
||||
"declarations.",
|
||||
hasPublishedDocs: true,
|
||||
type: DiagnosticType.COMPILE_TIME_ERROR,
|
||||
uniqueName: 'deferred_import_of_extension',
|
||||
|
||||
@@ -4527,8 +4527,8 @@ CompileTimeErrorCode:
|
||||
deferredImportOfExtension:
|
||||
type: compileTimeError
|
||||
parameters: none
|
||||
problemMessage: Imports of deferred libraries must hide all extensions.
|
||||
correctionMessage: Try adding either a show combinator listing the names you need to reference or a hide combinator listing all of the extensions.
|
||||
problemMessage: Deferred library imports must hide all extension declarations.
|
||||
correctionMessage: Try adding either a show combinator listing the names you need to reference or a hide combinator listing all of the extension declarations.
|
||||
hasPublishedDocs: true
|
||||
documentation: |-
|
||||
#### Description
|
||||
|
||||
Reference in New Issue
Block a user