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

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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 (_) => hasDisallowUnsafeEval = true), 342 (_) => hasDisallowUnsafeEval = true),
343 new OptionHandler('--show-package-warnings', passThrough), 343 new OptionHandler('--show-package-warnings', passThrough),
344 new OptionHandler('--csp', passThrough), 344 new OptionHandler('--csp', passThrough),
345 new OptionHandler('--enable-experimental-mirrors', passThrough), 345 new OptionHandler('--enable-experimental-mirrors', passThrough),
346 new OptionHandler('--enable-async', (_) { 346 new OptionHandler('--enable-async', (_) {
347 diagnosticHandler.info( 347 diagnosticHandler.info(
348 "Option '--enable-async' is no longer needed. " 348 "Option '--enable-async' is no longer needed. "
349 "Async-await is supported by default.", 349 "Async-await is supported by default.",
350 api.Diagnostic.HINT); 350 api.Diagnostic.HINT);
351 }), 351 }),
352 new OptionHandler('--enable-null-aware-operators', (_) {
Siggi Cherem (dart-lang) 2015/05/22 03:50:49 FYI - I'm adding this for now because the language
Johnni Winther 2015/05/22 12:39:48 I thought that experimental features should be opt
Siggi Cherem (dart-lang) 2015/05/22 19:49:54 Oh - I thought that because the DEP was accepted a
353 diagnosticHandler.info(
354 "Option '--enable-null-aware-operators' is not needed. "
355 "Null aware operators are supported by default.",
356 api.Diagnostic.HINT);
357 }),
352 new OptionHandler('--enable-enum', (_) { 358 new OptionHandler('--enable-enum', (_) {
353 diagnosticHandler.info( 359 diagnosticHandler.info(
354 "Option '--enable-enum' is no longer needed. " 360 "Option '--enable-enum' is no longer needed. "
355 "Enums are supported by default.", 361 "Enums are supported by default.",
356 api.Diagnostic.HINT); 362 api.Diagnostic.HINT);
357 }), 363 }),
358 new OptionHandler('--allow-native-extensions', setAllowNativeExtensions), 364 new OptionHandler('--allow-native-extensions', setAllowNativeExtensions),
359 new OptionHandler('--generate-code-with-compile-time-errors', passThrough), 365 new OptionHandler('--generate-code-with-compile-time-errors', passThrough),
360 366
361 // The following three options must come last. 367 // The following three options must come last.
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 } else if (exitCode == 253) { 747 } else if (exitCode == 253) {
742 print(">>> TEST CRASH"); 748 print(">>> TEST CRASH");
743 } else { 749 } else {
744 print(">>> TEST FAIL"); 750 print(">>> TEST FAIL");
745 } 751 }
746 stderr.writeln(">>> EOF STDERR"); 752 stderr.writeln(">>> EOF STDERR");
747 subscription.resume(); 753 subscription.resume();
748 }); 754 });
749 }); 755 });
750 } 756 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698