Skip to content

Commit d512020

Browse files
johnniwinthercommit-bot@chromium.org
authored andcommitted
[cfe] Update CFE message to use 'null safety' instead of 'non-nullable'
Closes #42464 Change-Id: I2865cd4ff2fac3c40d5f8b8d26d6b958919682b8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/152481 Commit-Queue: Johnni Winther <[email protected]> Reviewed-by: Jens Johansen <[email protected]>
1 parent da39a4a commit d512020

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7850,7 +7850,7 @@ const Code<Null> codeStrongModeNNBDButOptOut = messageStrongModeNNBDButOptOut;
78507850
const MessageCode messageStrongModeNNBDButOptOut = const MessageCode(
78517851
"StrongModeNNBDButOptOut",
78527852
message:
7853-
r"""A library can't opt out of non-nullable by default, when in nnbd-strong mode.""");
7853+
r"""A library can't opt out of null safety by default, when using sound null safety.""");
78547854

78557855
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
78567856
const Code<Null> codeSuperAsExpression = messageSuperAsExpression;

pkg/front_end/messages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ Unspecified:
11861186
template: "#string"
11871187

11881188
StrongModeNNBDButOptOut:
1189-
template: "A library can't opt out of non-nullable by default, when in nnbd-strong mode."
1189+
template: "A library can't opt out of null safety by default, when using sound null safety."
11901190

11911191
AbstractNotSync:
11921192
template: "Abstract methods can't use 'async', 'async*', or 'sync*'."

pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_dill/strong_lib.dart.outline.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// Problems in component:
33
//
4-
// pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_dill/strong_lib.dart: Error: A library can't opt out of non-nullable by default, when in nnbd-strong mode.
4+
// pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_dill/strong_lib.dart: Error: A library can't opt out of null safety by default, when using sound null safety.
55
//
66
library /*isNonNullableByDefault*/;
77
import self as self;

pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_dill/strong_lib.dart.strong.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// Problems in component:
33
//
4-
// pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_dill/strong_lib.dart: Error: A library can't opt out of non-nullable by default, when in nnbd-strong mode.
4+
// pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_dill/strong_lib.dart: Error: A library can't opt out of null safety by default, when using sound null safety.
55
//
66
library /*isNonNullableByDefault*/;
77
import self as self;

pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_dill/strong_lib.dart.strong.transformed.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// Problems in component:
33
//
4-
// pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_dill/strong_lib.dart: Error: A library can't opt out of non-nullable by default, when in nnbd-strong mode.
4+
// pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_dill/strong_lib.dart: Error: A library can't opt out of null safety by default, when using sound null safety.
55
//
66
library /*isNonNullableByDefault*/;
77
import self as self;

pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_source/strong.dart.outline.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ library /*isNonNullableByDefault*/;
1010
//
1111
// Problems in library:
1212
//
13-
// pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_source/strong_lib.dart:1:1: Error: A library can't opt out of non-nullable by default, when in nnbd-strong mode.
13+
// pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_source/strong_lib.dart:1:1: Error: A library can't opt out of null safety by default, when using sound null safety.
1414
// // @dart = 2.7
1515
// ^^^^^^^^^^^^^^
1616
//

pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_source/strong.dart.strong.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ library /*isNonNullableByDefault*/;
1212
//
1313
// Problems in library:
1414
//
15-
// pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_source/strong_lib.dart:1:1: Error: A library can't opt out of non-nullable by default, when in nnbd-strong mode.
15+
// pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_source/strong_lib.dart:1:1: Error: A library can't opt out of null safety by default, when using sound null safety.
1616
// // @dart = 2.7
1717
// ^^^^^^^^^^^^^^
1818
//

pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_source/strong.dart.strong.transformed.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ library /*isNonNullableByDefault*/;
1212
//
1313
// Problems in library:
1414
//
15-
// pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_source/strong_lib.dart:1:1: Error: A library can't opt out of non-nullable by default, when in nnbd-strong mode.
15+
// pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_source/strong_lib.dart:1:1: Error: A library can't opt out of null safety by default, when using sound null safety.
1616
// // @dart = 2.7
1717
// ^^^^^^^^^^^^^^
1818
//

0 commit comments

Comments
 (0)