diff --git a/dev/bots/test.dart b/dev/bots/test.dart index d30282b574..dc47d11e9c 100644 --- a/dev/bots/test.dart +++ b/dev/bots/test.dart @@ -71,6 +71,7 @@ Future _verifyInternationalizations() async { final EvalResult genResult = await _evalCommand( dart, [ + '--preview-dart-2', path.join('dev', 'tools', 'gen_localizations.dart'), ], workingDirectory: flutterRoot, @@ -117,7 +118,8 @@ Future _analyzeRepo() async { ); // Analyze all the sample code in the repo - await _runCommand(dart, [path.join(flutterRoot, 'dev', 'bots', 'analyze-sample-code.dart')], + await _runCommand(dart, + ['--preview-dart-2', path.join(flutterRoot, 'dev', 'bots', 'analyze-sample-code.dart')], workingDirectory: flutterRoot, ); @@ -128,7 +130,8 @@ Future _analyzeRepo() async { ); // Try an analysis against a big version of the gallery. - await _runCommand(dart, [path.join(flutterRoot, 'dev', 'tools', 'mega_gallery.dart')], + await _runCommand(dart, + ['--preview-dart-2', path.join(flutterRoot, 'dev', 'tools', 'mega_gallery.dart')], workingDirectory: flutterRoot, ); await _runFlutterAnalyze(path.join(flutterRoot, 'dev', 'benchmarks', 'mega_gallery'), @@ -391,7 +394,7 @@ Future _runAllDartTests(String workingDirectory, { Map environment, List options, }) { - final List args = ['--checked']; + final List args = ['--preview-dart-2']; if (options != null) { args.addAll(options); } diff --git a/dev/tools/localizations_validator.dart b/dev/tools/localizations_validator.dart index 2d8f0286dd..f73cfc1910 100644 --- a/dev/tools/localizations_validator.dart +++ b/dev/tools/localizations_validator.dart @@ -28,7 +28,8 @@ String validateEnglishLocalizations(File file) { continue; final dynamic atResourceValue = bundle[atResourceId]; - final Map atResource = atResourceValue is Map ? atResourceValue : null; + final Map atResource = + atResourceValue is Map ? atResourceValue : null; if (atResource == null) { errorMessages.writeln('A map value was not specified for $atResourceId'); continue;