Skip to content

Commit ce99386

Browse files
bwilkersonCommit Queue
authored and
Commit Queue
committed
Update the noSoundNullSafety flag to allow for testing
Change-Id: Ibf79675c758ffefaa8af7488dd1965f0fabbfc4b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/275741 Reviewed-by: Samuel Rawlins <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]>
1 parent 959f0a2 commit ce99386

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

pkg/analyzer/lib/src/utilities/legacy.dart

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
/// A flag indicating whether code that opts back to before 2.12 (null safety)
6-
/// is supported.
6+
/// is unsupported. That is, when the flag is `true` all code is analyzed
7+
/// assuming that null-safety is required, and when the flag is `false` all code
8+
/// is analyzed assuming that null-safety is optional.
79
///
8-
/// This flag will be removed in Dart 3.0, so it should not be used outside the
9-
/// analyzer package.
10-
const bool noSoundNullSafety = true;
10+
/// This flag is only writable in order to allow us to continue to test the
11+
/// pre-3.0 behavior while developing 3.0.
12+
///
13+
/// This flag will be removed in Dart 3.0 (with an implied value of `true`), so
14+
/// it should not be used outside the analyzer package.
15+
bool noSoundNullSafety = true;

0 commit comments

Comments
 (0)