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

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: Refactor a function. 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
Index: frog/leg/warnings.dart
diff --git a/frog/leg/warnings.dart b/frog/leg/warnings.dart
index 146ae7209c11c1c0877f22d1a528abd2838fdb39..b6aa3123e2b40419a17bd71de0af66b476aaa353 100644
--- a/frog/leg/warnings.dart
+++ b/frog/leg/warnings.dart
@@ -68,6 +68,10 @@ class MessageKind {
"only call to 'this' or 'super' constructor allowed");
static final INVALID_FOR_IN = const MessageKind(
'Invalid for-in variable declaration.');
+ static final REDIRECTING_CONSTRUCTOR_CYCLE = const MessageKind(
kasperl 2012/02/14 14:24:47 It would be nice if we used either CTOR or CONSTRU
karlklose 2012/02/14 15:44:42 Done.
+ 'cyclic constructor redirection');
+ static final REDIRECTING_CTOR_HAS_BODY = const MessageKind(
+ 'redirecting constructor cannot have a body');
static final REDIRECTING_CTOR_HAS_INITIALIZER = const MessageKind(
'redirecting constructor cannot have other initializers');
static final SUPER_INITIALIZER_IN_OBJECT = const MessageKind(

Powered by Google App Engine
This is Rietveld 408576698