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

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

Issue 2579843002: fix assert message tests in dart2js (Closed)
Patch Set: Created 4 years 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/diagnostics/messages.dart ('k') | tests/co19/co19-dart2js.status » ('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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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.src.options; 5 library dart2js.src.options;
6 6
7 import '../compiler.dart' show PackagesDiscoveryProvider; 7 import '../compiler.dart' show PackagesDiscoveryProvider;
8 import 'commandline_options.dart' show Flags; 8 import 'commandline_options.dart' show Flags;
9 9
10 /// Options used for controlling diagnostic messages. 10 /// Options used for controlling diagnostic messages.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 final bool disableTypeInference; 124 final bool disableTypeInference;
125 125
126 /// Whether to emit a .json file with a summary of the information used by the 126 /// Whether to emit a .json file with a summary of the information used by the
127 /// compiler during optimization. This includes resolution details, 127 /// compiler during optimization. This includes resolution details,
128 /// dependencies between elements, results of type inference, and the output 128 /// dependencies between elements, results of type inference, and the output
129 /// code for each function. 129 /// code for each function.
130 final bool dumpInfo; 130 final bool dumpInfo;
131 131
132 /// Whether we allow passing an extra argument to `assert`, containing a 132 /// Whether we allow passing an extra argument to `assert`, containing a
133 /// reason for why an assertion fails. (experimental) 133 /// reason for why an assertion fails. (experimental)
134 ///
135 /// This is only included so that tests can pass the --assert-message flag
136 /// without causing dart2js to crash. The flag has no effect.
134 final bool enableAssertMessage; 137 final bool enableAssertMessage;
135 138
136 /// Whether the user specified a flag to allow the use of dart:mirrors. This 139 /// Whether the user specified a flag to allow the use of dart:mirrors. This
137 /// silences a warning produced by the compiler. 140 /// silences a warning produced by the compiler.
138 final bool enableExperimentalMirrors; 141 final bool enableExperimentalMirrors;
139 142
140 /// Whether to enable minification 143 /// Whether to enable minification
141 // TODO(sigmund): rename to minify 144 // TODO(sigmund): rename to minify
142 final bool enableMinification; 145 final bool enableMinification;
143 146
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 } 701 }
699 702
700 /// Locations of the platform descriptor files relative to the library root. 703 /// Locations of the platform descriptor files relative to the library root.
701 const String _clientPlatform = "lib/dart_client.platform"; 704 const String _clientPlatform = "lib/dart_client.platform";
702 const String _serverPlatform = "lib/dart_server.platform"; 705 const String _serverPlatform = "lib/dart_server.platform";
703 const String _sharedPlatform = "lib/dart_shared.platform"; 706 const String _sharedPlatform = "lib/dart_shared.platform";
704 707
705 const String _UNDETERMINED_BUILD_ID = "build number could not be determined"; 708 const String _UNDETERMINED_BUILD_ID = "build number could not be determined";
706 const bool _forceIncrementalSupport = 709 const bool _forceIncrementalSupport =
707 const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT'); 710 const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT');
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/diagnostics/messages.dart ('k') | tests/co19/co19-dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698