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

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

Issue 10855140: Issue 3562. Analyzer should not warn about shadowing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 06a0a5941f07d743f807397b91d767af7f918a8f..a5a55f94dbf235a35fe393b5daf4e7af3cb5f371 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
@@ -85,19 +85,13 @@ public enum ResolverErrorCode implements ErrorCode {
DID_YOU_MEAN_NEW("%1$s is a %2$s. Did you mean (new %1$s)?"),
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"),
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"),
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_TYPE_VARIABLE("Duplicate type variable '%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