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

Unified Diff: frog/leg/warnings.dart

Issue 8974014: Resolve initializers in constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add tests. Created 9 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
Index: frog/leg/warnings.dart
diff --git a/frog/leg/warnings.dart b/frog/leg/warnings.dart
index 82755890f163d65d09bb8ed7389eb28191f61482..fbd3571f5eda8277258b3eee66763da58b49b2d1 100644
--- a/frog/leg/warnings.dart
+++ b/frog/leg/warnings.dart
@@ -42,6 +42,10 @@ class MessageKind {
'#{1} is not a type');
static final CANNOT_FIND_CONSTRUCTOR = const MessageKind(
'cannot find constructor #{1}');
+ static final INVALID_RECEIVER_IN_INITIALIZER = const MessageKind(
+ 'only \'this\' can be used as a receiver in an initializer');
ahe 2011/12/19 18:07:26 Perhaps this error message could be improved and s
karlklose 2011/12/21 10:19:44 Done.
+ static final DUPLICATION_INITIALIZATION = const MessageKind(
ngeoffray 2011/12/20 15:09:51 DUPLICATE_INITIALIZER?
karlklose 2011/12/21 10:19:44 Done.
+ 'field #{1} is initialized more than once');
ahe 2011/12/19 18:07:26 I'd like to see the previous place it is initializ
karlklose 2011/12/21 10:19:44 Done, but I only print the node information, not t
ahe 2011/12/21 12:01:58 Why don't you have that information?
toString() => template;
}

Powered by Google App Engine
This is Rietveld 408576698