| Index: pkg/compiler/lib/src/dart2js.dart
|
| diff --git a/pkg/compiler/lib/src/dart2js.dart b/pkg/compiler/lib/src/dart2js.dart
|
| index 4aad6af0011cc5dc1223e7f8c804fa2c2abc269b..1fbf54358fbbd205d5da824aab4b9db87a77ea37 100644
|
| --- a/pkg/compiler/lib/src/dart2js.dart
|
| +++ b/pkg/compiler/lib/src/dart2js.dart
|
| @@ -114,7 +114,6 @@ Future<api.CompilationResult> compile(List<String> argv) {
|
| bool stripArgumentSet = false;
|
| bool analyzeOnly = false;
|
| bool analyzeAll = false;
|
| - bool enableAsyncAwait = false;
|
| bool allowNativeExtensions = false;
|
| bool trustTypeAnnotations = false;
|
| bool trustPrimitives = false;
|
| @@ -192,11 +191,6 @@ Future<api.CompilationResult> compile(List<String> argv) {
|
| passThrough(argument);
|
| }
|
|
|
| - setEnableAsync(String argument) {
|
| - enableAsyncAwait = true;
|
| - passThrough(argument);
|
| - }
|
| -
|
| setAllowNativeExtensions(String argument) {
|
| allowNativeExtensions = true;
|
| passThrough(argument);
|
| @@ -340,7 +334,12 @@ Future<api.CompilationResult> compile(List<String> argv) {
|
| new OptionHandler('--show-package-warnings', passThrough),
|
| new OptionHandler('--csp', passThrough),
|
| new OptionHandler('--enable-experimental-mirrors', passThrough),
|
| - new OptionHandler('--enable-async', setEnableAsync),
|
| + new OptionHandler('--enable-async', (_) {
|
| + diagnosticHandler.info(
|
| + "Option '--enable-async' is no longer needed. "
|
| + "Async-await is supported by default.",
|
| + api.Diagnostic.HINT);
|
| + }),
|
| new OptionHandler('--enable-enum', (_) {
|
| diagnosticHandler.info(
|
| "Option '--enable-enum' is no longer needed. "
|
| @@ -410,10 +409,6 @@ Future<api.CompilationResult> compile(List<String> argv) {
|
| }
|
| if (analyzeAll) analyzeOnly = true;
|
| if (!analyzeOnly) {
|
| - if (enableAsyncAwait && outputLanguage != OUTPUT_LANGUAGE_DART) {
|
| - helpAndFail("Option '--enable-async' is currently only supported in "
|
| - "combination with the '--analyze-only' option.");
|
| - }
|
| if (allowNativeExtensions) {
|
| helpAndFail("Option '--allow-native-extensions' is only supported in "
|
| "combination with the '--analyze-only' option.");
|
|
|