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:
Brian Wilkerson 2022-12-13 01:07:35 +00:00 committed by Commit Queue
parent 220bb44c55
commit 9488163d7e

View 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;