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

Unified Diff: sdk/lib/_internal/compiler/implementation/elements/elements.dart

Issue 147743005: classes with call-methods were not recognized as Functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Forgot to update analyzer2 status file. Created 6 years, 11 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: sdk/lib/_internal/compiler/implementation/elements/elements.dart
diff --git a/sdk/lib/_internal/compiler/implementation/elements/elements.dart b/sdk/lib/_internal/compiler/implementation/elements/elements.dart
index 53d6650ed24f460b4611fe6fe254c7fd528266a2..3243e90884bfc2adc5bfa8b5a4186a519c3d8ab1 100644
--- a/sdk/lib/_internal/compiler/implementation/elements/elements.dart
+++ b/sdk/lib/_internal/compiler/implementation/elements/elements.dart
@@ -907,6 +907,11 @@ abstract class ClassElement extends TypeDeclarationElement
bool isObject(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
+ /// implement `Function`.
bool implementsInterface(ClassElement intrface);
bool hasFieldShadowedBy(Element fieldMember);

Powered by Google App Engine
This is Rietveld 408576698