mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 08:07:11 +00:00
Add a flag to temporarily allow pre-null-safe code to be analyzed
Change-Id: I89e3d1cbdc47d2a7c5c9e7e04d1dd5ab1855e8c4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/275140 Reviewed-by: Samuel Rawlins <srawlins@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
parent
220bb44c55
commit
9488163d7e
1 changed files with 10 additions and 0 deletions
10
pkg/analyzer/lib/src/utilities/legacy.dart
Normal file
10
pkg/analyzer/lib/src/utilities/legacy.dart
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
|
||||||
|
// for details. All rights reserved. Use of this source code is governed by a
|
||||||
|
// BSD-style license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
/// A flag indicating whether code that opts back to before 2.12 (null safety)
|
||||||
|
/// is supported.
|
||||||
|
///
|
||||||
|
/// This flag will be removed in Dart 3.0, so it should not be used outside the
|
||||||
|
/// analyzer package.
|
||||||
|
const bool noSoundNullSafety = true;
|
Loading…
Reference in a new issue