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

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

Issue 2879153005: Add support to dart2js for option --enable-asserts. (Closed)
Patch Set: Added !$checked to section predicate in co19 status file Created 3 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
« no previous file with comments | « pkg/compiler/lib/src/commandline_options.dart ('k') | pkg/compiler/lib/src/options.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' show Future; 7 import 'dart:async' show Future;
8 import 'dart:convert' show UTF8, LineSplitter; 8 import 'dart:convert' show UTF8, LineSplitter;
9 import 'dart:io' show exit, File, FileMode, Platform, stdin, stderr; 9 import 'dart:io' show exit, File, FileMode, Platform, stdin, stderr;
10 10
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 new OptionHandler(Flags.preserveUris, passThrough), 349 new OptionHandler(Flags.preserveUris, passThrough),
350 new OptionHandler('--force-strip=.*', setStrip), 350 new OptionHandler('--force-strip=.*', setStrip),
351 new OptionHandler(Flags.disableDiagnosticColors, (_) { 351 new OptionHandler(Flags.disableDiagnosticColors, (_) {
352 enableColors = false; 352 enableColors = false;
353 }), 353 }),
354 new OptionHandler(Flags.enableDiagnosticColors, (_) { 354 new OptionHandler(Flags.enableDiagnosticColors, (_) {
355 enableColors = true; 355 enableColors = true;
356 }), 356 }),
357 new OptionHandler('--enable[_-]checked[_-]mode|--checked', 357 new OptionHandler('--enable[_-]checked[_-]mode|--checked',
358 (_) => setCheckedMode(Flags.enableCheckedMode)), 358 (_) => setCheckedMode(Flags.enableCheckedMode)),
359 new OptionHandler(Flags.enableAsserts, passThrough),
359 new OptionHandler(Flags.trustTypeAnnotations, 360 new OptionHandler(Flags.trustTypeAnnotations,
360 (_) => setTrustTypeAnnotations(Flags.trustTypeAnnotations)), 361 (_) => setTrustTypeAnnotations(Flags.trustTypeAnnotations)),
361 new OptionHandler(Flags.trustPrimitives, 362 new OptionHandler(Flags.trustPrimitives,
362 (_) => setTrustPrimitives(Flags.trustPrimitives)), 363 (_) => setTrustPrimitives(Flags.trustPrimitives)),
363 new OptionHandler( 364 new OptionHandler(
364 Flags.trustJSInteropTypeAnnotations, 365 Flags.trustJSInteropTypeAnnotations,
365 (_) => setTrustJSInteropTypeAnnotations( 366 (_) => setTrustJSInteropTypeAnnotations(
366 Flags.trustJSInteropTypeAnnotations)), 367 Flags.trustJSInteropTypeAnnotations)),
367 new OptionHandler(r'--help|/\?|/h', (_) => wantHelp = true), 368 new OptionHandler(r'--help|/\?|/h', (_) => wantHelp = true),
368 new OptionHandler('--packages=.+', setPackageConfig), 369 new OptionHandler('--packages=.+', setPackageConfig),
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 @override 1090 @override
1090 void add(String event) { 1091 void add(String event) {
1091 sb.write(event); 1092 sb.write(event);
1092 } 1093 }
1093 1094
1094 @override 1095 @override
1095 void close() { 1096 void close() {
1096 // Do nothing. 1097 // Do nothing.
1097 } 1098 }
1098 } 1099 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/commandline_options.dart ('k') | pkg/compiler/lib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698