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

Unified Diff: pkg/compiler/lib/src/elements/elements.dart

Issue 723523003: Avoid emmitting is test for Function if superclass already has it. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: spelling fixes. Created 6 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 | pkg/compiler/lib/src/elements/modelx.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/elements/elements.dart
diff --git a/pkg/compiler/lib/src/elements/elements.dart b/pkg/compiler/lib/src/elements/elements.dart
index 442e12b22701773a76c374dde646b3d4dcc2f264..4c0c0396c7d378f5091822bf3ee525e6d1cdf471 100644
--- a/pkg/compiler/lib/src/elements/elements.dart
+++ b/pkg/compiler/lib/src/elements/elements.dart
@@ -1335,11 +1335,15 @@ abstract class ClassElement extends TypeDeclarationElement
/// Returns `true` if this class is `Object` from dart:core.
bool get isObject;
+ /// Returns `true` if this class implements [Function] either by directly
+ /// implementing the interface or by providing a [call] method.
+ bool implementsFunction(Compiler compiler);
+
bool isSubclassOf(ClassElement cls);
/// Returns true if `this` explicitly/nominally implements [intrface].
///
/// Note that, if [intrface] is the `Function` class, this method returns
- /// falso for a class that has a `call` method but does not explicitly
+ /// false for a class that has a `call` method but does not explicitly
/// implement `Function`.
bool implementsInterface(ClassElement intrface);
bool hasFieldShadowedBy(Element fieldMember);
« no previous file with comments | « no previous file | pkg/compiler/lib/src/elements/modelx.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698