Skip to content

Commit

Permalink
Roll Dart to version be63096 (flutter#5987)
Browse files Browse the repository at this point in the history
This rolls includes the following changes:

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

* fix analyzer hint

* use --enable-asserts instead of --checked
  • Loading branch information
mkustermann authored Aug 10, 2018
1 parent d90223f commit 2ab499d
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 53 deletions.
2 changes: 1 addition & 1 deletion DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion ci/licenses.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
88 changes: 44 additions & 44 deletions ci/licenses_golden/licenses_third_party
Original file line number Diff line number Diff line change
Expand Up @@ -16652,50 +16652,6 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
====================================================================================================

====================================================================================================
LIBRARY: tonic
ORIGIN: ../../../garnet/LICENSE
TYPE: LicenseType.bsd
FILE: ../../../third_party/tonic/dart_list.cc
FILE: ../../../third_party/tonic/dart_list.h
FILE: ../../../third_party/tonic/file_loader/file_loader_fuchsia.cc
FILE: ../../../third_party/tonic/file_loader/file_loader_posix.cc
FILE: ../../../third_party/tonic/file_loader/file_loader_win.cc
FILE: ../../../third_party/tonic/filesystem/filesystem/path_win.cc
FILE: ../../../third_party/tonic/filesystem/filesystem/portable_unistd.h
FILE: ../../../third_party/tonic/platform/platform_utils.h
FILE: ../../../third_party/tonic/platform/platform_utils_posix.cc
FILE: ../../../third_party/tonic/platform/platform_utils_win.cc
----------------------------------------------------------------------------------------------------
Copyright 2017 The Fuchsia Authors. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
====================================================================================================

====================================================================================================
LIBRARY: tonic
ORIGIN: ../../../third_party/tonic/LICENSE
Expand Down Expand Up @@ -16793,6 +16749,50 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
====================================================================================================

====================================================================================================
LIBRARY: tonic
ORIGIN: ../../../third_party/tonic/file_loader/file_loader_fuchsia.cc + ../../../third_party/tonic/LICENSE
TYPE: LicenseType.bsd
FILE: ../../../third_party/tonic/dart_list.cc
FILE: ../../../third_party/tonic/dart_list.h
FILE: ../../../third_party/tonic/file_loader/file_loader_fuchsia.cc
FILE: ../../../third_party/tonic/file_loader/file_loader_posix.cc
FILE: ../../../third_party/tonic/file_loader/file_loader_win.cc
FILE: ../../../third_party/tonic/filesystem/filesystem/path_win.cc
FILE: ../../../third_party/tonic/filesystem/filesystem/portable_unistd.h
FILE: ../../../third_party/tonic/platform/platform_utils.h
FILE: ../../../third_party/tonic/platform/platform_utils_posix.cc
FILE: ../../../third_party/tonic/platform/platform_utils_win.cc
----------------------------------------------------------------------------------------------------
Copyright 2017 The Fuchsia Authors. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
====================================================================================================

====================================================================================================
LIBRARY: tonic
ORIGIN: ../../../third_party/tonic/typed_data/dart_byte_data.cc + ../../../third_party/tonic/LICENSE
Expand Down
9 changes: 7 additions & 2 deletions frontend_server/bin/starter.dart
Original file line number Diff line number Diff line change
@@ -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);
}
}
9 changes: 4 additions & 5 deletions frontend_server/lib/server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 2ab499d

Please sign in to comment.