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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java

Issue 10704114: Issue 3985. Tweaks for warning messages (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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: compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
index 5a40c1e3b8a9c034788e97d3ab99da3f3a5d3b04..840a1a2050f2ad02fb6542178b3c2ba4822afe7c 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
@@ -83,18 +83,18 @@ public enum ResolverErrorCode implements ErrorCode {
DUPLICATE_INITIALIZATION("Duplicate initialization of '%s'"),
DUPLICATE_FUNCTION_EXPRESSION("Duplicate function expression '%s'"),
DUPLICATE_FUNCTION_EXPRESSION_WARNING(ErrorSeverity.WARNING,
- "Function expression '%s' is hiding '%s' at %s"),
+ "Function expression '%s' is hiding %s at %s"),
DUPLICATE_LABEL_IN_SWITCH_STATEMENT("Duplicate label in switch statement"),
DUPLICATE_LOCAL_VARIABLE_ERROR("Duplicate local variable '%s'"),
DUPLICATE_LOCAL_VARIABLE_WARNING(ErrorSeverity.WARNING,
- "Local variable '%s' is hiding '%s' at %s"),
+ "Local variable '%s' is hiding %s at %s"),
DUPLICATE_MEMBER("Duplicate member '%s'"),
DUPLICATE_NAMED_ARGUMENT("Duplicate named parameter argument"),
DUPLICATE_PARAMETER("Duplicate parameter '%s'"),
- DUPLICATE_PARAMETER_WARNING(ErrorSeverity.WARNING, "Parameter '%s' is hiding '%s' at %s"),
- DUPLICATE_TOP_LEVEL_DECLARATION("duplicate top-level declaration '%s' at %s"),
+ DUPLICATE_PARAMETER_WARNING(ErrorSeverity.WARNING, "Parameter '%s' is hiding %s at %s"),
+ DUPLICATE_TOP_LEVEL_DECLARATION("duplicate top-level declaration %s at %s"),
DUPLICATE_TYPE_VARIABLE("Duplicate type variable '%s'"),
- DUPLICATE_TYPE_VARIABLE_WARNING(ErrorSeverity.WARNING, "Type variable '%s' is hiding '%s' at %s"),
+ DUPLICATE_TYPE_VARIABLE_WARNING(ErrorSeverity.WARNING, "Type variable '%s' is hiding %s at %s"),
// TODO(zundel): error message needs JUnit test, (reachable code?)
EXPECTED_AN_INSTANCE_FIELD_IN_SUPER_CLASS(
"expected an instance field in the super class, but got %s"),

Powered by Google App Engine
This is Rietveld 408576698