Chromium Code Reviews| Index: frog/leg/warnings.dart |
| diff --git a/frog/leg/warnings.dart b/frog/leg/warnings.dart |
| index e54f8f939ab1315c0609e4c7e31566b2facdad24..153ad7261fbe600a894e0f9a8948d44dd208ff26 100644 |
| --- a/frog/leg/warnings.dart |
| +++ b/frog/leg/warnings.dart |
| @@ -26,8 +26,8 @@ class MessageKind { |
| 'no method named #{2} in class #{1}'); |
| static final MEMBER_NOT_STATIC = const MessageKind( |
| '#{1}.#{2} is not static'); |
| - static final NOT_STATIC = const MessageKind( |
| - '#{1} is not static'); |
| + static final NO_INSTANCE_AVAILABLE = const MessageKind( |
| + '#{1} is only available in instance methods'); |
| static final UNREACHABLE_CODE = const MessageKind( |
| 'unreachable code'); |
| @@ -50,8 +50,6 @@ class MessageKind { |
| 'cannot find constructor #{1}'); |
| static final INVALID_RECEIVER_IN_INITIALIZER = const MessageKind( |
| 'field initializer expected'); |
| - static final NO_THIS_IN_STATIC = const MessageKind( |
| - '\'this\' is only available in instance methods'); |
| static final NO_SUPER_IN_STATIC = const MessageKind( |
| '\'super\' is only available in instance methods'); |
| static final DUPLICATE_INITIALIZER = const MessageKind( |
| @@ -62,8 +60,20 @@ class MessageKind { |
| 'cannot initialize static field #{1}'); |
| static final NOT_A_FIELD = const MessageKind( |
| '#{1} is not a field'); |
| + static final CONSTRUCTOR_CALL_EXPECTED = const MessageKind( |
| + 'only call to \'this\' or \'super\' constructor allowed'); |
|
floitsch
2012/01/18 15:22:14
you could avoid the escapes by using " to delimit
karlklose
2012/01/18 16:36:09
Done.
|
| static final INVALID_FOR_IN = const MessageKind( |
| 'Invalid for-in variable declaration.'); |
| + static final REDIRECTING_CTOR_HAS_INITIALIZER = const MessageKind( |
| + 'redirecting constructor cannot have other initializers'); |
| + static final SUPER_INITIALIZER_IN_OBJECT = const MessageKind( |
| + "'Object' cannot have a superinitializer"); |
|
floitsch
2012/01/18 15:22:14
super initializer
karlklose
2012/01/18 16:36:09
Done.
|
| + static final DUPLICATE_SUPER_INITIALIZER = const MessageKind( |
| + 'cannot have more than one super initializer'); |
| + static final NO_MATCHING_CONSTRUCTOR = const MessageKind( |
| + 'no matching constructor found'); |
| + static final NO_CONSTRUCTOR = const MessageKind( |
| + '#{1} is a #{2}, not a constructor'); |
| toString() => template; |
| } |