Chromium Code Reviews| 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; |
| } |