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

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: A classelement can't be a typedef. 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..3ec5bf346d6302660de99749c09b204cc438bb6e 100644
--- a/sdk/lib/_internal/compiler/implementation/elements/elements.dart
+++ b/sdk/lib/_internal/compiler/implementation/elements/elements.dart
@@ -907,6 +907,10 @@ abstract class ClassElement extends TypeDeclarationElement
bool isObject(Compiler compiler);
bool isSubclassOf(ClassElement cls);
+ /// Returns true if `this` implements [intrface].
ngeoffray 2014/01/31 23:32:41 if `this` explicitly/nominally implements [intrfac
floitsch 2014/01/31 23:36:23 Done.
+ ///
+ /// Does not return true if `this` has a `call` method, and [intrface] is
+ /// `Function`.
bool implementsInterface(ClassElement intrface);
bool hasFieldShadowedBy(Element fieldMember);

Powered by Google App Engine
This is Rietveld 408576698