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

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

Issue 9980004: Look up the correct constructor for default classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 8 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 | lib/compiler/implementation/lib/io.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/elements/elements.dart
diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart
index c1da9dc56336a3824608c1280028f9d14e37012b..a9c34cbc8b6d9097bdb7982aad62141ac5e9f22d 100644
--- a/lib/compiler/implementation/elements/elements.dart
+++ b/lib/compiler/implementation/elements/elements.dart
@@ -825,6 +825,16 @@ class ClassElement extends ContainerElement {
forEachMember(fieldFilter, includeBackendMembers, includeSuperMembers);
}
+ bool implementsInterface(ClassElement intrface) {
+ for (Type implementedInterfaceType in allSupertypes) {
+ ClassElement implementedInterface = implementedInterfaceType.element;
+ if (implementedInterface === intrface) {
+ return true;
+ }
+ }
+ return false;
+ }
+
bool isInterface() => false;
bool isNative() => nativeName != null;
SourceString nativeName;
« no previous file with comments | « no previous file | lib/compiler/implementation/lib/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698