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

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

Issue 10537006: Issue 3266. Produce a warning when trying to call an inaccessible method (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
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 2c5e1952c78262e6e2510f137d42c9da6b87fd0f..4d00e53384d5e51aecacb9fa70ca7ad96d2be773 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
@@ -13,8 +13,9 @@ import com.google.dart.compiler.SubSystem;
public enum ResolverErrorCode implements ErrorCode {
BLACK_LISTED_EXTENDS("'%s' can not be used as superclass"),
BLACK_LISTED_IMPLEMENTS("'%s' can not be used as superinterface"),
- CANNOT_ACCESS_OUTER_LABEL("Cannot access label %s declared in an outer function"),
CANNOT_ACCESS_FIELD_IN_INIT("Cannot access an instance field in an initializer expression"),
+ CANNOT_ACCESS_METHOD(ErrorSeverity.WARNING, "Cannot access private method '%s'"),
+ CANNOT_ACCESS_OUTER_LABEL("Cannot access label %s declared in an outer function"),
CANNOT_ASSIGN_TO_FINAL("cannot assign value to final variable \"%s\"."),
CANNOT_ASSIGN_TO_METHOD("cannot assign value to method '%s'."),
CANNOT_BE_RESOLVED("cannot resolve %s"),

Powered by Google App Engine
This is Rietveld 408576698