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

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

Issue 1151163004: Implementation of null-aware operators. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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
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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 (_) => hasDisallowUnsafeEval = true), 340 (_) => hasDisallowUnsafeEval = true),
341 new OptionHandler('--show-package-warnings', passThrough), 341 new OptionHandler('--show-package-warnings', passThrough),
342 new OptionHandler('--csp', passThrough), 342 new OptionHandler('--csp', passThrough),
343 new OptionHandler('--enable-experimental-mirrors', passThrough), 343 new OptionHandler('--enable-experimental-mirrors', passThrough),
344 new OptionHandler('--enable-async', (_) { 344 new OptionHandler('--enable-async', (_) {
345 diagnosticHandler.info( 345 diagnosticHandler.info(
346 "Option '--enable-async' is no longer needed. " 346 "Option '--enable-async' is no longer needed. "
347 "Async-await is supported by default.", 347 "Async-await is supported by default.",
348 api.Diagnostic.HINT); 348 api.Diagnostic.HINT);
349 }), 349 }),
350 new OptionHandler('--enable-null-aware-operators', passThrough),
350 new OptionHandler('--enable-enum', (_) { 351 new OptionHandler('--enable-enum', (_) {
351 diagnosticHandler.info( 352 diagnosticHandler.info(
352 "Option '--enable-enum' is no longer needed. " 353 "Option '--enable-enum' is no longer needed. "
353 "Enums are supported by default.", 354 "Enums are supported by default.",
354 api.Diagnostic.HINT); 355 api.Diagnostic.HINT);
355 }), 356 }),
356 new OptionHandler('--allow-native-extensions', setAllowNativeExtensions), 357 new OptionHandler('--allow-native-extensions', setAllowNativeExtensions),
357 new OptionHandler('--generate-code-with-compile-time-errors', passThrough), 358 new OptionHandler('--generate-code-with-compile-time-errors', passThrough),
358 359
359 // The following three options must come last. 360 // The following three options must come last.
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 } else if (exitCode == 253) { 740 } else if (exitCode == 253) {
740 print(">>> TEST CRASH"); 741 print(">>> TEST CRASH");
741 } else { 742 } else {
742 print(">>> TEST FAIL"); 743 print(">>> TEST FAIL");
743 } 744 }
744 stderr.writeln(">>> EOF STDERR"); 745 stderr.writeln(">>> EOF STDERR");
745 subscription.resume(); 746 subscription.resume();
746 }); 747 });
747 }); 748 });
748 } 749 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart ('k') | pkg/compiler/lib/src/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698