Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/apiimpl.dart |
| diff --git a/sdk/lib/_internal/compiler/implementation/apiimpl.dart b/sdk/lib/_internal/compiler/implementation/apiimpl.dart |
| index 5670d49a41a7433583ff7d4d4d0e36ddd6e43acf..e862e5a5adf83ad1f9a44c9b0e894e51ce691b7a 100644 |
| --- a/sdk/lib/_internal/compiler/implementation/apiimpl.dart |
| +++ b/sdk/lib/_internal/compiler/implementation/apiimpl.dart |
| @@ -77,7 +77,8 @@ class Compiler extends leg.Compiler { |
| hasIncrementalSupport: |
| forceIncrementalSupport || |
| hasOption(options, '--incremental-support'), |
| - suppressWarnings: hasOption(options, '--suppress-warnings')) { |
| + suppressWarnings: hasOption(options, '--suppress-warnings'), |
| + enableAsyncAwait: hasOption(options, '--enable-async')) { |
| tasks.addAll([ |
| userHandlerTask = new leg.GenericTask('Diagnostic handler', this), |
| userProviderTask = new leg.GenericTask('Input provider', this), |
| @@ -88,6 +89,10 @@ class Compiler extends leg.Compiler { |
| if (packageRoot != null && !packageRoot.path.endsWith("/")) { |
| throw new ArgumentError("packageRoot must end with a /"); |
| } |
| + if (enableAsyncAwait && !analyzeOnly) { |
| + throw new ArgumentError( |
| + "--enable-async currently only supported with --analyze-only"); |
|
floitsch
2014/11/03 17:55:54
--enable-async is currently ...
Johnni Winther
2014/11/04 12:24:33
Done.
|
| + } |
| } |
| static String extractStringOption(List<String> options, |