Enable private field promotion for dev (#134480)
New feature in upcoming Dart 3.2. See https://github.com/dart-lang/language/issues/2020. Feature is enabled by bumping the min SDK version to 3.2. Part of https://github.com/flutter/flutter/issues/134476.
This commit is contained in:
committed by
GitHub
parent
4e7a07af88
commit
b966b2beee
@@ -515,14 +515,14 @@ class _SnippetChecker {
|
||||
/// Returns true if any errors are found, false otherwise.
|
||||
Future<bool> checkSnippets() async {
|
||||
final Map<String, _SnippetFile> snippets = <String, _SnippetFile>{};
|
||||
if (_dartUiLocation != null && !_dartUiLocation!.existsSync()) {
|
||||
stderr.writeln('Unable to analyze engine dart snippets at ${_dartUiLocation!.path}.');
|
||||
if (_dartUiLocation != null && !_dartUiLocation.existsSync()) {
|
||||
stderr.writeln('Unable to analyze engine dart snippets at ${_dartUiLocation.path}.');
|
||||
}
|
||||
final List<File> filesToAnalyze = <File>[
|
||||
for (final Directory flutterPackage in _flutterPackages)
|
||||
..._listDartFiles(flutterPackage, recursive: true),
|
||||
if (_dartUiLocation != null && _dartUiLocation!.existsSync())
|
||||
..._listDartFiles(_dartUiLocation!, recursive: true),
|
||||
if (_dartUiLocation != null && _dartUiLocation.existsSync())
|
||||
..._listDartFiles(_dartUiLocation, recursive: true),
|
||||
];
|
||||
final Set<Object> errors = <Object>{};
|
||||
errors.addAll(await _extractSnippets(filesToAnalyze, snippetMap: snippets));
|
||||
|
||||
@@ -2,7 +2,7 @@ name: tests_on_bots
|
||||
description: Scripts which run on bots.
|
||||
|
||||
environment:
|
||||
sdk: '>=3.0.0-0 <4.0.0'
|
||||
sdk: '>=3.2.0-0 <4.0.0'
|
||||
|
||||
dependencies:
|
||||
args: 2.4.2
|
||||
|
||||
Reference in New Issue
Block a user