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

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

Issue 1225273002: Remove flag for enabling null-aware operators. They are now on by default. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 (_) => hasDisallowUnsafeEval = true), 352 (_) => hasDisallowUnsafeEval = true),
353 new OptionHandler('--show-package-warnings', passThrough), 353 new OptionHandler('--show-package-warnings', passThrough),
354 new OptionHandler('--csp', passThrough), 354 new OptionHandler('--csp', passThrough),
355 new OptionHandler('--enable-experimental-mirrors', passThrough), 355 new OptionHandler('--enable-experimental-mirrors', passThrough),
356 new OptionHandler('--enable-async', (_) { 356 new OptionHandler('--enable-async', (_) {
357 diagnosticHandler.info( 357 diagnosticHandler.info(
358 "Option '--enable-async' is no longer needed. " 358 "Option '--enable-async' is no longer needed. "
359 "Async-await is supported by default.", 359 "Async-await is supported by default.",
360 api.Diagnostic.HINT); 360 api.Diagnostic.HINT);
361 }), 361 }),
362 new OptionHandler('--enable-null-aware-operators', passThrough), 362 new OptionHandler('--enable-null-aware-operators', (_) {
363 diagnosticHandler.info(
364 "Option '--enable-null-aware-operators' is no longer needed. "
365 "Null aware operators are supported by default.",
366 api.Diagnostic.HINT);
367 }),
363 new OptionHandler('--enable-enum', (_) { 368 new OptionHandler('--enable-enum', (_) {
364 diagnosticHandler.info( 369 diagnosticHandler.info(
365 "Option '--enable-enum' is no longer needed. " 370 "Option '--enable-enum' is no longer needed. "
366 "Enums are supported by default.", 371 "Enums are supported by default.",
367 api.Diagnostic.HINT); 372 api.Diagnostic.HINT);
368 }), 373 }),
369 new OptionHandler('--allow-native-extensions', setAllowNativeExtensions), 374 new OptionHandler('--allow-native-extensions', setAllowNativeExtensions),
370 new OptionHandler('--generate-code-with-compile-time-errors', passThrough), 375 new OptionHandler('--generate-code-with-compile-time-errors', passThrough),
371 new OptionHandler('--test-mode', passThrough), 376 new OptionHandler('--test-mode', passThrough),
372 377
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 } else if (exitCode == 253) { 765 } else if (exitCode == 253) {
761 print(">>> TEST CRASH"); 766 print(">>> TEST CRASH");
762 } else { 767 } else {
763 print(">>> TEST FAIL"); 768 print(">>> TEST FAIL");
764 } 769 }
765 stderr.writeln(">>> EOF STDERR"); 770 stderr.writeln(">>> EOF STDERR");
766 subscription.resume(); 771 subscription.resume();
767 }); 772 });
768 }); 773 });
769 } 774 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/scanner/array_based_scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698