Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: pkg/compiler/lib/src/dart2js.dart

Issue 880973005: Support async/await in dart2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comment + status for new_backend Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js.cmdline; 5 library dart2js.cmdline;
6 6
7 import 'dart:async' 7 import 'dart:async'
8 show Future, EventSink; 8 show Future, EventSink;
9 import 'dart:convert' show UTF8, LineSplitter; 9 import 'dart:convert' show UTF8, LineSplitter;
10 import 'dart:io' 10 import 'dart:io'
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 "Option '--analyze-all' implies '--analyze-only'.", 403 "Option '--analyze-all' implies '--analyze-only'.",
404 api.Diagnostic.INFO); 404 api.Diagnostic.INFO);
405 } 405 }
406 diagnosticHandler.info( 406 diagnosticHandler.info(
407 "Options $optionsImplyCompilation indicate that output is expected, " 407 "Options $optionsImplyCompilation indicate that output is expected, "
408 "but compilation is turned off by the option '--analyze-only'.", 408 "but compilation is turned off by the option '--analyze-only'.",
409 api.Diagnostic.INFO); 409 api.Diagnostic.INFO);
410 } 410 }
411 if (analyzeAll) analyzeOnly = true; 411 if (analyzeAll) analyzeOnly = true;
412 if (!analyzeOnly) { 412 if (!analyzeOnly) {
413 if (enableAsyncAwait) { 413 if (enableAsyncAwait && outputLanguage != OUTPUT_LANGUAGE_DART) {
414 helpAndFail("Option '--enable-async' is currently only supported in " 414 helpAndFail("Option '--enable-async' is currently only supported in "
415 "combination with the '--analyze-only' option."); 415 "combination with the '--analyze-only' option.");
416 } 416 }
417 if (allowNativeExtensions) { 417 if (allowNativeExtensions) {
418 helpAndFail("Option '--allow-native-extensions' is only supported in " 418 helpAndFail("Option '--allow-native-extensions' is only supported in "
419 "combination with the '--analyze-only' option."); 419 "combination with the '--analyze-only' option.");
420 } 420 }
421 } 421 }
422 422
423 diagnosticHandler.info('Package root is $packageRoot'); 423 diagnosticHandler.info('Package root is $packageRoot');
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 } else if (exitCode == 253) { 722 } else if (exitCode == 253) {
723 print(">>> TEST CRASH"); 723 print(">>> TEST CRASH");
724 } else { 724 } else {
725 print(">>> TEST FAIL"); 725 print(">>> TEST FAIL");
726 } 726 }
727 stderr.writeln(">>> EOF STDERR"); 727 stderr.writeln(">>> EOF STDERR");
728 subscription.resume(); 728 subscription.resume();
729 }); 729 });
730 }); 730 });
731 } 731 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698