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

Unified Diff: pkg/compiler/lib/src/diagnostics/generated/shared_messages.dart

Issue 1711863005: Split the JSON output into multiple lines. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Ues JsonEncoder.withIndent. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/parser.dart ('k') | pkg/compiler/lib/src/diagnostics/messages.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/diagnostics/generated/shared_messages.dart
diff --git a/pkg/compiler/lib/src/diagnostics/generated/shared_messages.dart b/pkg/compiler/lib/src/diagnostics/generated/shared_messages.dart
index 7419ab2f379e30a3351bf46af280480c65b18f69..03f31e5bcb6d5cfc63ed53f95928b0df95294adb 100644
--- a/pkg/compiler/lib/src/diagnostics/generated/shared_messages.dart
+++ b/pkg/compiler/lib/src/diagnostics/generated/shared_messages.dart
@@ -73,6 +73,23 @@ const Map<MessageKind, MessageTemplate> TEMPLATES = const <MessageKind, MessageT
"class A { int A() {} } main() { new A(); }",
]
), // Generated. Don't edit.
+ MessageKind.MISSING_EXPRESSION_IN_THROW: const MessageTemplate(
+ MessageKind.MISSING_EXPRESSION_IN_THROW,
+ "Throw expressions must compute the object to be thrown.",
+ howToFix: "Did you mean 'rethrow'?",
+ examples: const [
+ "main() { throw; }",
+ "main() { try { throw 0; } catch(e) { throw; } }",
+ ]
+ ), // Generated. Don't edit.
+ MessageKind.RETHROW_OUTSIDE_CATCH: const MessageTemplate(
+ MessageKind.RETHROW_OUTSIDE_CATCH,
+ "Rethrow must be inside of catch clause",
+ howToFix: "Try moving the expression into a catch clause, or using a 'throw' expression.",
+ examples: const [
+ "main() { rethrow; }",
+ ]
+ ), // Generated. Don't edit.
MessageKind.RETURN_IN_GENERATIVE_CONSTRUCTOR: const MessageTemplate(
MessageKind.RETURN_IN_GENERATIVE_CONSTRUCTOR,
"Constructors can't return values.",
« no previous file with comments | « pkg/analyzer/lib/src/generated/parser.dart ('k') | pkg/compiler/lib/src/diagnostics/messages.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698