Migrate more tool unit tests to null safety (#80002)

This commit is contained in:
Jenn Magder
2021-04-08 15:18:52 -07:00
committed by GitHub
parent aa96eb299a
commit ec14cef060
14 changed files with 21 additions and 44 deletions

View File

@@ -48,7 +48,7 @@ bool _inUnitTest() {
///
/// The specification for the language version tag is defined at:
/// https://github.com/dart-lang/language/blob/master/accepted/future-releases/language-versioning/feature-specification.md#individual-library-language-version-override
LanguageVersion determineLanguageVersion(File file, Package package, String flutterRoot) {
LanguageVersion determineLanguageVersion(File file, Package? package, String flutterRoot) {
int blockCommentDepth = 0;
// If reading the file fails, default to a null-safe version. The
// command will likely fail later in the process with a better error