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

Unified Diff: pkg/compiler/lib/src/diagnostics/messages.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/diagnostics/messages.dart
diff --git a/pkg/compiler/lib/src/diagnostics/messages.dart b/pkg/compiler/lib/src/diagnostics/messages.dart
index a9df3ee6562c9ef83851cf16860e66ec360debba..7563ceac1c1fd1c790c441aad6e229d9886e3799 100644
--- a/pkg/compiler/lib/src/diagnostics/messages.dart
+++ b/pkg/compiler/lib/src/diagnostics/messages.dart
@@ -190,7 +190,6 @@ enum MessageKind {
EXISTING_DEFINITION,
EXISTING_LABEL,
EXPECTED_IDENTIFIER_NOT_RESERVED_WORD,
- EXPERIMENTAL_ASSERT_MESSAGE,
EXPONENT_MISSING,
EXPORT_BEFORE_PARTS,
EXTERNAL_WITH_BODY,
@@ -3658,21 +3657,6 @@ main() => foo();
// Patch errors end.
//////////////////////////////////////////////////////////////////////////////
- MessageKind.EXPERIMENTAL_ASSERT_MESSAGE: const MessageTemplate(
- MessageKind.EXPERIMENTAL_ASSERT_MESSAGE,
- "Experimental language feature 'assertion with message'"
- " is not supported.",
- howToFix:
- "Use option '--assert-message' to use assertions with messages.",
- examples: const [
- r'''
-main() {
- int n = -7;
- assert(n > 0, 'must be positive: $n');
-}
-'''
- ]),
-
MessageKind.IMPORT_EXPERIMENTAL_MIRRORS: const MessageTemplate(
MessageKind.IMPORT_EXPERIMENTAL_MIRRORS,
r'''
« no previous file with comments | « no previous file | pkg/compiler/lib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698