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

Unified Diff: frog/leg/warnings.dart

Issue 9351020: Implement try/catch without finally, and without type checks. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 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 | « frog/leg/typechecker.dart ('k') | tests/co19/co19-leg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/warnings.dart
===================================================================
--- frog/leg/warnings.dart (revision 4024)
+++ frog/leg/warnings.dart (working copy)
@@ -86,6 +86,12 @@
'#{1} is not an instance field');
static final EXPECTED_LITERAL_NUMBER = const MessageKind(
'expected a literal number after +');
+ static final NO_CATCH_NOR_FINALLY = const MessageKind(
+ "expected 'catch' or 'finally'");
+ static final EMPTY_CATCH_DECLARATION = const MessageKind(
+ 'expected a variable in catch declaration');
+ static final EXTRA_CATCH_DECLARATION = const MessageKind(
+ 'extra variable in catch declaration');
static final NOT_A_COMPILE_TIME_CONSTANT = const MessageKind(
'#{1} cannot be used as compile-time constant');
« no previous file with comments | « frog/leg/typechecker.dart ('k') | tests/co19/co19-leg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698