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

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

Issue 11052012: Patch signatures checked in resolver. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Check moved. Created 8 years, 2 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 | « lib/compiler/implementation/resolver.dart ('k') | tests/compiler/dart2js/patch_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/warnings.dart
diff --git a/lib/compiler/implementation/warnings.dart b/lib/compiler/implementation/warnings.dart
index 5e3f40f31b06a5ebe69bb7f9d70667b5fdde455c..8036c2d62043232d9fabe8896a4db6f3e14f8790 100644
--- a/lib/compiler/implementation/warnings.dart
+++ b/lib/compiler/implementation/warnings.dart
@@ -264,6 +264,25 @@ Invalid offset (#{1}) in source map.
File: #{2}
Length: #{3}''');
+ 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}) doesn't match parameter "
+ "count on origin method '#{1}' (#{2}).");
+
+ static const PATCH_OPTIONAL_PARAMETER_COUNT_MISMATCH = const MessageKind(
+ "Optional parameter count of patch method (#{3}) doesn't match parameter "
+ "count on origin method '#{1}' (#{2}).");
+
+ static const PATCH_OPTIONAL_PARAMETER_NAMED_MISMATCH = const MessageKind(
+ "Optional parameters of origin and patch method '#{1}' must "
+ "both be either named or positional.");
+
+ static const PATCH_PARAMETER_MISMATCH = const MessageKind(
+ "Patch method parameter '#{3}' doesn't match '#{2}' on origin method "
+ "#{1}.");
+
static const COMPILER_CRASHED = const MessageKind(
"Error: The compiler crashed when compiling this element.");
« no previous file with comments | « lib/compiler/implementation/resolver.dart ('k') | tests/compiler/dart2js/patch_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698