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

Unified Diff: frog/leg/warnings.dart

Issue 9391004: Implement cycle-checking and code generation for redirecting constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. 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/tree/nodes.dart ('k') | frog/tests/leg_only/src/CyclicConstructorTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/warnings.dart
diff --git a/frog/leg/warnings.dart b/frog/leg/warnings.dart
index db5fdc19242144239edf388be9a9644119ac6f24..d089e27efbacd296d8fff9b84bf7b7df4969df77 100644
--- a/frog/leg/warnings.dart
+++ b/frog/leg/warnings.dart
@@ -67,8 +67,16 @@ class MessageKind {
static final CONSTRUCTOR_CALL_EXPECTED = const MessageKind(
"only call to 'this' or 'super' constructor allowed");
static final INVALID_FOR_IN = const MessageKind(
- 'Invalid for-in variable declaration.');
- static final REDIRECTING_CTOR_HAS_INITIALIZER = const MessageKind(
+ 'invalid for-in variable declaration.');
+ static final INVALID_INITIALIZER = const MessageKind(
+ 'invalid initializer');
+ static final FUNCTION_WITH_INITIALIZER = const MessageKind(
+ 'only constructors can have initializers');
+ static final REDIRECTING_CONSTRUCTOR_CYCLE = const MessageKind(
+ 'cyclic constructor redirection');
+ static final REDIRECTING_CONSTRUCTOR_HAS_BODY = const MessageKind(
+ 'redirecting constructor cannot have a body');
+ static final REDIRECTING_CONSTRUCTOR_HAS_INITIALIZER = const MessageKind(
'redirecting constructor cannot have other initializers');
static final SUPER_INITIALIZER_IN_OBJECT = const MessageKind(
"'Object' cannot have a super initializer");
« no previous file with comments | « frog/leg/tree/nodes.dart ('k') | frog/tests/leg_only/src/CyclicConstructorTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698