mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
snapshot the kernel worker in dart 2 mode and fix some dart 2 errors
Change-Id: Icf4e123e61bc265ba1d4c6620826e5f23241add0 Reviewed-on: https://dart-review.googlesource.com/62120 Reviewed-by: Sigmund Cherem <sigmund@google.com> Commit-Queue: Jake Macdonald <jakemac@google.com>
This commit is contained in:
parent
b29bde6232
commit
9d3533ff72
|
@ -7,4 +7,5 @@ import("../application_snapshot.gni")
|
|||
application_snapshot("kernel_worker") {
|
||||
main_dart = "kernel_worker.dart"
|
||||
training_args = [ "--help" ]
|
||||
dart_version = 2
|
||||
}
|
||||
|
|
|
@ -128,7 +128,7 @@ Future<bool> computeKernel(List<String> args,
|
|||
if (multiRoots.isEmpty) multiRoots.add(Uri.base);
|
||||
var fileSystem = new MultiRootFileSystem(parsedArgs['multi-root-scheme'],
|
||||
multiRoots, fe.StandardFileSystem.instance);
|
||||
var sources = parsedArgs['source'].map(Uri.parse).toList();
|
||||
var sources = (parsedArgs['source'] as List<String>).map(Uri.parse).toList();
|
||||
Target target;
|
||||
var summaryOnly = parsedArgs['summary-only'] as bool;
|
||||
var excludeNonSources = parsedArgs['exclude-non-sources'] as bool;
|
||||
|
@ -143,8 +143,12 @@ Future<bool> computeKernel(List<String> args,
|
|||
null,
|
||||
Uri.base.resolve(parsedArgs['dart-sdk-summary']),
|
||||
Uri.base.resolve(parsedArgs['packages-file']),
|
||||
parsedArgs['input-summary'].map(Uri.base.resolve).toList(),
|
||||
parsedArgs['input-linked'].map(Uri.base.resolve).toList(),
|
||||
(parsedArgs['input-summary'] as List<String>)
|
||||
.map(Uri.base.resolve)
|
||||
.toList(),
|
||||
(parsedArgs['input-linked'] as List<String>)
|
||||
.map(Uri.base.resolve)
|
||||
.toList(),
|
||||
target,
|
||||
fileSystem);
|
||||
|
||||
|
|
Loading…
Reference in a new issue