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

Unified Diff: frog/leg/warnings.dart

Issue 9166010: Implement super calls. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 11 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 99553a7782c09e265a337bdf39ef49945f32f510..c8094a56705591bb8de7ae0006d6b5ee8e72b62e 100644
--- a/frog/leg/warnings.dart
+++ b/frog/leg/warnings.dart
@@ -44,12 +44,16 @@ class MessageKind {
'duplicate definition of #{1}');
static final NOT_A_TYPE = const MessageKind(
'#{1} is not a type');
+ static final NO_SUPER_IN_OBJECT = const MessageKind(
+ '\'Object\' does not have a superclass');
static final CANNOT_FIND_CONSTRUCTOR = const 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(
'field #{1} is initialized more than once');
static final ALREADY_INITIALIZED = const MessageKind(
@@ -74,8 +78,7 @@ class Message {
message = kind.template;
int position = 1;
for (var argument in arguments) {
- message = message.replaceAll('#{${position++}}',
- argument.toString());
+ message = message.replaceAll('#{${position++}}', argument.toString());
}
}
return message;

Powered by Google App Engine
This is Rietveld 408576698