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

Unified Diff: pkg/compiler/lib/src/options.dart

Issue 2576113002: fix assert with message (Closed)
Patch Set: remove --assert-message flag 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/dart2js.dart ('k') | pkg/compiler/lib/src/resolution/members.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/options.dart
diff --git a/pkg/compiler/lib/src/options.dart b/pkg/compiler/lib/src/options.dart
index 70594dc2ae3e120a58895129982f6c8d856a7929..777f4b00d9300ca82b1d8c146621af9e9c33b3c7 100644
--- a/pkg/compiler/lib/src/options.dart
+++ b/pkg/compiler/lib/src/options.dart
@@ -129,10 +129,6 @@ class CompilerOptions implements DiagnosticOptions {
/// code for each function.
final bool dumpInfo;
- /// Whether we allow passing an extra argument to `assert`, containing a
- /// reason for why an assertion fails. (experimental)
- final bool enableAssertMessage;
-
/// Whether the user specified a flag to allow the use of dart:mirrors. This
/// silences a warning produced by the compiler.
final bool enableExperimentalMirrors;
@@ -267,7 +263,6 @@ class CompilerOptions implements DiagnosticOptions {
disableInlining: _hasOption(options, Flags.disableInlining),
disableTypeInference: _hasOption(options, Flags.disableTypeInference),
dumpInfo: _hasOption(options, Flags.dumpInfo),
- enableAssertMessage: _hasOption(options, Flags.enableAssertMessage),
enableExperimentalMirrors:
_hasOption(options, Flags.enableExperimentalMirrors),
enableMinification: _hasOption(options, Flags.minify),
@@ -333,7 +328,6 @@ class CompilerOptions implements DiagnosticOptions {
bool disableInlining: false,
bool disableTypeInference: false,
bool dumpInfo: false,
- bool enableAssertMessage: false,
bool enableExperimentalMirrors: false,
bool enableMinification: false,
bool enableNativeLiveTypeAnalysis: true,
@@ -403,7 +397,6 @@ class CompilerOptions implements DiagnosticOptions {
disableInlining: disableInlining || hasIncrementalSupport,
disableTypeInference: disableTypeInference,
dumpInfo: dumpInfo,
- enableAssertMessage: enableAssertMessage,
enableExperimentalMirrors: enableExperimentalMirrors,
enableMinification: enableMinification,
enableNativeLiveTypeAnalysis: enableNativeLiveTypeAnalysis,
@@ -452,7 +445,6 @@ class CompilerOptions implements DiagnosticOptions {
this.disableInlining: false,
this.disableTypeInference: false,
this.dumpInfo: false,
- this.enableAssertMessage: false,
this.enableExperimentalMirrors: false,
this.enableMinification: false,
this.enableNativeLiveTypeAnalysis: false,
@@ -508,7 +500,6 @@ class CompilerOptions implements DiagnosticOptions {
disableInlining,
disableTypeInference,
dumpInfo,
- enableAssertMessage,
enableExperimentalMirrors,
enableMinification,
enableNativeLiveTypeAnalysis,
@@ -565,7 +556,6 @@ class CompilerOptions implements DiagnosticOptions {
disableTypeInference:
disableTypeInference ?? options.disableTypeInference,
dumpInfo: dumpInfo ?? options.dumpInfo,
- enableAssertMessage: enableAssertMessage ?? options.enableAssertMessage,
enableExperimentalMirrors:
enableExperimentalMirrors ?? options.enableExperimentalMirrors,
enableMinification: enableMinification ?? options.enableMinification,
« no previous file with comments | « pkg/compiler/lib/src/dart2js.dart ('k') | pkg/compiler/lib/src/resolution/members.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698