-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #868 from Workiva/FED-1720-conditionally-null-safe…
…-builder FED-1720 Conditionally null-safe builder output (tests)
- Loading branch information
Showing
92 changed files
with
15,540 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import 'package:analyzer/dart/ast/token.dart' show LanguageVersionToken; | ||
import 'package:package_config/package_config.dart' show LanguageVersion; | ||
|
||
bool _languageVersionSupportsNullSafety(int major, int minor) => | ||
major > 2 || (major == 2 && minor >= 12); | ||
|
||
extension LanguageVersionToken$NullSafety on LanguageVersionToken { | ||
bool get supportsNullSafety => _languageVersionSupportsNullSafety(major, minor); | ||
} | ||
|
||
extension LanguageVersion$NullSafety on LanguageVersion { | ||
bool get supportsNullSafety => _languageVersionSupportsNullSafety(major, minor); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.