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

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

Issue 10905305: Patch refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 8 years, 3 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: lib/compiler/implementation/warnings.dart
diff --git a/lib/compiler/implementation/warnings.dart b/lib/compiler/implementation/warnings.dart
index 6c17cf7ffdde4dd857a6748661e9161fe1235ef9..26a236e5c9de0d800ca36b88caea10f960b959a2 100644
--- a/lib/compiler/implementation/warnings.dart
+++ b/lib/compiler/implementation/warnings.dart
@@ -256,6 +256,19 @@ class MessageKind {
static const VOID_NOT_ALLOWED = const MessageKind(
'type void is only allowed in a return type.');
+ static const PATCH_RETURN_TYPE_MISMATCH = const MessageKind(
+ "Patch return type #{3} doesn't match #{2} on origin method #{1}.");
+
+ static const PATCH_REQUIRED_PARAMETER_COUNT_MISMATCH = const MessageKind(
+ "Required parameter count of patch method (#{3}) on origin method #{1}.");
+
+ static const PATCH_OPTIONAL_PARAMETER_COUNT_MISMATCH = const MessageKind(
+ "Optional parameter count of patch method (#{3}) on origin method #{1}.");
+
+ static const PATCH_PARAMETER_MISMATCH = const MessageKind(
+ "Patch parameter '#{3}' doesn't match '#{2}' on origin method #{1}.");
+
+
static const COMPILER_CRASHED = const MessageKind(
"Error: The compiler crashed when compiling this element.");

Powered by Google App Engine
This is Rietveld 408576698