Roll Dart to version be6309690fd60284a87f3258a740c7c30efb1092 (flutter/engine#5987)

This rolls includes the following changes:

be6309690f (HEAD) Analyze pkg/dart2js_tools on the bots.
6f9073bb9d Wait for Analysis Server errors only while waiting for a response.
5d4e85ba3d Allow `x == null` to be a constant value whenever x is const.
7c77ed04f4 Move deobfuscation tools to the SDK repo
666c8c1a89 Fix @visibleForTemplate tests on Windows.
6fc1dd4480 analyzer_plugin no implicit-casts.
29401573d5 Get documentation comments before metadata as well.
3d0a663518 [vm/frontend-server] Fix frontend_server so that it can be tested.

* fix analyzer hint

* use --enable-asserts instead of --checked
This commit is contained in:
Martin Kustermann
2018-08-10 13:42:44 +02:00
committed by GitHub
parent 1890290fdb
commit 9374aa15fc
4 changed files with 13 additions and 9 deletions

2
DEPS
View File

@@ -31,7 +31,7 @@ vars = {
# Dart is: https://github.com/dart-lang/sdk/blob/master/DEPS.
# You can use //tools/dart/create_updated_flutter_deps.py to produce
# updated revision list of existing dependencies.
'dart_revision': '1be785ae2ddb1754a184cd638ab719e94d86b4e9',
'dart_revision': 'be6309690fd60284a87f3258a740c7c30efb1092',
'dart_args_tag': '1.4.4',
'dart_async_tag': '2.0.8',

View File

@@ -3,7 +3,7 @@ set -e
shopt -s nullglob
echo "Verifying license script is still happy..."
(cd flutter/tools/licenses; pub get; dart --checked lib/main.dart --src ../../.. --out ../../../out/license_script_output --golden ../../ci/licenses_golden)
(cd flutter/tools/licenses; pub get; dart --enable-asserts lib/main.dart --src ../../.. --out ../../../out/license_script_output --golden ../../ci/licenses_golden)
for f in out/license_script_output/licenses_*; do
if ! cmp -s flutter/ci/licenses_golden/$(basename $f) $f

View File

@@ -1,7 +1,12 @@
library frontend_server;
import 'dart:io';
import 'package:frontend_server/server.dart';
void main(List<String> args){
starter(args);
void main(List<String> args) async {
final int exitCode = await starter(args);
if (exitCode != 0) {
exit(exitCode);
}
}

View File

@@ -121,11 +121,10 @@ Future<int> starter(
compiler ??= new _FlutterFrontendCompiler(output, trackWidgetCreation: options['track-widget-creation']);
if (options.rest.isNotEmpty) {
exit(await compiler.compile(options.rest[0], options)
? 0
: 254);
return await compiler.compile(options.rest[0], options) ? 0 : 254;
}
frontend.listenAndCompile(compiler, input ?? stdin, options, () { exit(0); } );
return 0;
final Completer<int> completer = new Completer<int>();
frontend.listenAndCompile(compiler, input ?? stdin, options, completer);
return completer.future;
}