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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticWarningCode.java

Issue 54063004: Fix for 13493 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 7 years, 1 month 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 | « no previous file | editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ElementResolver.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticWarningCode.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticWarningCode.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticWarningCode.java
index 76cec51b57bb8a6e7ee31ee97330f93108ba2c5e..487ae6ee90e0e1a9c731e5fd338f84c15fccdbc7 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticWarningCode.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticWarningCode.java
@@ -731,7 +731,7 @@ public enum StaticWarningCode implements ErrorCode {
RETURN_WITHOUT_VALUE("Missing return value after 'return'"),
/**
- * 12.15.3 Static Invocation: It is a static warning if <i>C</i> does not declare a static method
+ * 12.16.3 Static Invocation: It is a static warning if <i>C</i> does not declare a static method
* or getter <i>m</i>.
*
* @param memberName the name of the instance member
@@ -761,7 +761,7 @@ public enum StaticWarningCode implements ErrorCode {
TYPE_PARAMETER_REFERENCED_BY_STATIC("Static members cannot reference type parameters"),
/**
- * 12.15.3 Static Invocation: A static method invocation <i>i</i> has the form
+ * 12.16.3 Static Invocation: A static method invocation <i>i</i> has the form
* <i>C.m(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n+1</sub>, &hellip;
* x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a static warning if <i>C</i> does not denote a
* class in the current scope.
@@ -822,14 +822,14 @@ public enum StaticWarningCode implements ErrorCode {
UNDEFINED_SETTER("There is no such setter '%s' in '%s'"),
/**
- * 12.15.3 Static Invocation: It is a static warning if <i>C</i> does not declare a static method
+ * 12.16.3 Static Invocation: It is a static warning if <i>C</i> does not declare a static method
* or getter <i>m</i>.
*
* @param methodName the name of the method
* @param enclosingType the name of the enclosing type where the method is being looked for
*/
- // TODO(jwren) Even though we have a message here, this warning code is not being generated.
- UNDEFINED_STATIC_METHOD_OR_GETTER("There is no such static method '%s' in '%s'");
+ // Note: all cases of this method are covered by the StaticWarningCode.UNDEFINED_METHOD/UNDEFINED_GETTER and UNDEFINED_SETTER codes
+ UNDEFINED_STATIC_METHOD_OR_GETTER("There is no such static method, getter or setter '%s' in '%s'");
/**
* The template used to create the message to be displayed for this error.
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ElementResolver.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698