Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 134a437

Browse files
johnniwinthercommit-bot@chromium.org
authored andcommitted
[cfe] Update compiling without sound null safety message
In response to dart-lang/sdk#44234 (comment) Change-Id: I88ab66199217e817edead394ccc74a3f3b49ba15 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/180143 Reviewed-by: Michael Thomsen <mit@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
1 parent 186049d commit 134a437

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

pkg/_fe_analyzer_shared/lib/src/messages/codes_generated.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -998,14 +998,14 @@ const MessageCode messageCompilingWithSoundNullSafety = const MessageCode(
998998
message: r"""Compiling with sound null safety""");
999999

10001000
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1001-
const Code<Null> codeCompilingWithUnsoundNullSafety =
1002-
messageCompilingWithUnsoundNullSafety;
1001+
const Code<Null> codeCompilingWithoutSoundNullSafety =
1002+
messageCompilingWithoutSoundNullSafety;
10031003

10041004
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1005-
const MessageCode messageCompilingWithUnsoundNullSafety = const MessageCode(
1006-
"CompilingWithUnsoundNullSafety",
1005+
const MessageCode messageCompilingWithoutSoundNullSafety = const MessageCode(
1006+
"CompilingWithoutSoundNullSafety",
10071007
severity: Severity.info,
1008-
message: r"""Compiling with unsound null safety""");
1008+
message: r"""Compiling without sound null safety""");
10091009

10101010
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
10111011
const Template<

pkg/dartdev/test/commands/compile_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void main() {
1717

1818
const String soundNullSafetyMessage = 'Info: Compiling with sound null safety';
1919
const String unsoundNullSafetyMessage =
20-
'Info: Compiling with unsound null safety';
20+
'Info: Compiling without sound null safety';
2121

2222
void defineCompileTests() {
2323
// *** NOTE ***: These tests *must* be run with the `--use-sdk` option

pkg/front_end/lib/src/base/processed_options.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import '../fasta/fasta_codes.dart'
4848
messageCantInferPackagesFromManyInputs,
4949
messageCantInferPackagesFromPackageUri,
5050
messageCompilingWithSoundNullSafety,
51-
messageCompilingWithUnsoundNullSafety,
51+
messageCompilingWithoutSoundNullSafety,
5252
messageInternalProblemProvidedBothCompileSdkAndSdkSummary,
5353
messageMissingInput,
5454
noLength,
@@ -277,8 +277,8 @@ class ProcessedOptions {
277277
if (_raw.invocationModes.contains(InvocationMode.compile)) {
278278
switch (nnbdMode) {
279279
case NnbdMode.Weak:
280-
reportWithoutLocation(messageCompilingWithUnsoundNullSafety,
281-
messageCompilingWithUnsoundNullSafety.severity);
280+
reportWithoutLocation(messageCompilingWithoutSoundNullSafety,
281+
messageCompilingWithoutSoundNullSafety.severity);
282282
break;
283283
case NnbdMode.Strong:
284284
reportWithoutLocation(messageCompilingWithSoundNullSafety,

pkg/front_end/messages.status

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ CantUseSuperBoundedTypeForInstanceCreation/example: Fail
7070
ClassInNullAwareReceiver/analyzerCode: Fail
7171
ColonInPlaceOfIn/example: Fail
7272
CompilingWithSoundNullSafety/analyzerCode: Fail
73-
CompilingWithUnsoundNullSafety/analyzerCode: Fail
73+
CompilingWithoutSoundNullSafety/analyzerCode: Fail
7474
ConflictingModifiers/part_wrapped_script1: Fail
7575
ConflictingModifiers/script1: Fail
7676
ConflictsWithConstructor/example: Fail

pkg/front_end/messages.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4940,8 +4940,8 @@ CompilingWithSoundNullSafety:
49404940
script: |
49414941
main() {}
49424942
4943-
CompilingWithUnsoundNullSafety:
4944-
template: "Compiling with unsound null safety"
4943+
CompilingWithoutSoundNullSafety:
4944+
template: "Compiling without sound null safety"
49454945
configuration: nnbd-weak,compile
49464946
severity: INFO
49474947
script: |

0 commit comments

Comments
 (0)