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

Unified Diff: dart/lib/compiler/implementation/warnings.dart

Issue 10575033: Implement override checks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix problem that caused an assertion failure (and revert of the first attempt) Created 8 years, 6 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
« no previous file with comments | « dart/lib/compiler/implementation/tree/nodes.dart ('k') | dart/lib/isolate/frog/ports.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/warnings.dart
diff --git a/dart/lib/compiler/implementation/warnings.dart b/dart/lib/compiler/implementation/warnings.dart
index 54addb2ae01b40bb02918bbf8f128a59b01b3542..b4b1cec2097d16b15eb58ec458e817ffe7976c54 100644
--- a/dart/lib/compiler/implementation/warnings.dart
+++ b/dart/lib/compiler/implementation/warnings.dart
@@ -179,6 +179,38 @@ class MessageKind {
static final MISSING_ARGUMENTS_TO_ASSERT = const MessageKind(
"missing arguments to assert");
+ static final GETTER_MISMATCH = const MessageKind(
+ "Error: setter disagrees on: #{1}.");
+
+ static final SETTER_MISMATCH = const MessageKind(
+ "Error: getter disagrees on: #{1}.");
+
+ static final NO_STATIC_OVERRIDE = const MessageKind(
+ "Error: static member cannot override instance member '#{1}' of '#{2}'.");
+
+ static final NO_STATIC_OVERRIDE_CONT = const MessageKind(
+ "Info: this is the instance member that cannot be overridden "
+ "by a static member.");
+
+ static final CANNOT_OVERRIDE_FIELD_WITH_METHOD = const MessageKind(
+ "Error: method cannot override field '#{1}' of '#{2}'.");
+
+ static final CANNOT_OVERRIDE_FIELD_WITH_METHOD_CONT = const MessageKind(
+ "Info: this is the field that cannot be overridden by a method.");
+
+ static final CANNOT_OVERRIDE_METHOD_WITH_FIELD = const MessageKind(
+ "Error: field cannot override method '#{1}' of '#{2}'.");
+
+ static final CANNOT_OVERRIDE_METHOD_WITH_FIELD_CONT = const MessageKind(
+ "Info: this is the method that cannot be overridden by a field.");
+
+ static final BAD_ARITY_OVERRIDE = const MessageKind(
+ "Error: cannot override method '#{1}' in '#{2}'; "
+ "the parameters do not match.");
+
+ static final BAD_ARITY_OVERRIDE_CONT = const MessageKind(
+ "Info: this is the method whose parameters do not match.");
+
static final COMPILER_CRASHED = const MessageKind(
"Error: The compiler crashed when compiling this element.");
« no previous file with comments | « dart/lib/compiler/implementation/tree/nodes.dart ('k') | dart/lib/isolate/frog/ports.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698