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:
Sam Rawlins
2026-04-20 11:12:05 -07:00
committed by Samuel Rawlins
parent 299dabac5f
commit 877ded1a38
2 changed files with 6 additions and 4 deletions
@@ -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',
+2 -2
View File
@@ -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