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

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

Issue 871863006: Enable enums by default. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove the field in Compiler. 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
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/resolution/members.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 new OptionHandler('--disable-type-inference', implyCompilation), 334 new OptionHandler('--disable-type-inference', implyCompilation),
335 new OptionHandler('--terse', passThrough), 335 new OptionHandler('--terse', passThrough),
336 new OptionHandler('--deferred-map=.+', implyCompilation), 336 new OptionHandler('--deferred-map=.+', implyCompilation),
337 new OptionHandler('--dump-info', implyCompilation), 337 new OptionHandler('--dump-info', implyCompilation),
338 new OptionHandler('--disallow-unsafe-eval', 338 new OptionHandler('--disallow-unsafe-eval',
339 (_) => hasDisallowUnsafeEval = true), 339 (_) => hasDisallowUnsafeEval = true),
340 new OptionHandler('--show-package-warnings', passThrough), 340 new OptionHandler('--show-package-warnings', passThrough),
341 new OptionHandler('--csp', passThrough), 341 new OptionHandler('--csp', passThrough),
342 new OptionHandler('--enable-experimental-mirrors', passThrough), 342 new OptionHandler('--enable-experimental-mirrors', passThrough),
343 new OptionHandler('--enable-async', setEnableAsync), 343 new OptionHandler('--enable-async', setEnableAsync),
344 new OptionHandler('--enable-enum', passThrough), 344 new OptionHandler('--enable-enum', (_) {
345 diagnosticHandler.info(
346 "Option '--enable-enum' is no longer needed. "
347 "Enums are supported by default.",
348 api.Diagnostic.HINT);
349 }),
345 new OptionHandler('--allow-native-extensions', setAllowNativeExtensions), 350 new OptionHandler('--allow-native-extensions', setAllowNativeExtensions),
346 new OptionHandler('--generate-code-with-compile-time-errors', passThrough), 351 new OptionHandler('--generate-code-with-compile-time-errors', passThrough),
347 352
348 // The following three options must come last. 353 // The following three options must come last.
349 new OptionHandler('-D.+=.*', addInEnvironment), 354 new OptionHandler('-D.+=.*', addInEnvironment),
350 new OptionHandler('-.*', (String argument) { 355 new OptionHandler('-.*', (String argument) {
351 helpAndFail("Unknown option '$argument'."); 356 helpAndFail("Unknown option '$argument'.");
352 }), 357 }),
353 new OptionHandler('.*', (String argument) { 358 new OptionHandler('.*', (String argument) {
354 arguments.add(nativeToUriPath(argument)); 359 arguments.add(nativeToUriPath(argument));
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 } else if (exitCode == 253) { 722 } else if (exitCode == 253) {
718 print(">>> TEST CRASH"); 723 print(">>> TEST CRASH");
719 } else { 724 } else {
720 print(">>> TEST FAIL"); 725 print(">>> TEST FAIL");
721 } 726 }
722 stderr.writeln(">>> EOF STDERR"); 727 stderr.writeln(">>> EOF STDERR");
723 subscription.resume(); 728 subscription.resume();
724 }); 729 });
725 }); 730 });
726 } 731 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/resolution/members.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698