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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/FunctionElement.java

Issue 253493010: Change the error for importing a deferred library with a top-level 'loadLibrary' to being a hint. A… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code Review Created 6 years, 8 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 | « no previous file | editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.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/element/FunctionElement.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/FunctionElement.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/FunctionElement.java
index 74a58a1edc5627783e36b4a244cd946067fa080b..ae891778a9bd29f3309a58438110ca096df31d14 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/FunctionElement.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/FunctionElement.java
@@ -23,6 +23,18 @@ import com.google.dart.engine.context.AnalysisException;
*/
public interface FunctionElement extends ExecutableElement, LocalElement {
/**
+ * The name of the method that can be implemented by a class to allow its instances to be invoked
+ * as if they were a function.
+ */
+ public static final String CALL_METHOD_NAME = "call"; //$NON-NLS-1$
+
+ /**
+ * The name of the method that will be invoked if an attempt is made to invoke an undefined method
+ * on an object.
+ */
+ public static final String NO_SUCH_METHOD_METHOD_NAME = "noSuchMethod"; //$NON-NLS-1$
+
+ /**
* The name of the synthetic function defined for libraries that are deferred.
*/
public static final String LOAD_LIBRARY_NAME = "loadLibrary"; //$NON-NLS-1$
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698