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

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

Issue 10824350: Fix some type warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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: lib/compiler/implementation/elements/elements.dart
diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart
index 65b42a1b9becd8db7a27af80c5e6aa4c264bb15a..c952945533752d46febd528c1bb642548f8268ce 100644
--- a/lib/compiler/implementation/elements/elements.dart
+++ b/lib/compiler/implementation/elements/elements.dart
@@ -284,9 +284,6 @@ class Element implements Hashable {
listener.cancel("Unimplemented cloneTo", element: this);
}
- Link<Type> get allSupertypesAndSelf() {
- return allSupertypes.prepend(new InterfaceType(this));
- }
}
class ContainerElement extends Element {
@@ -1110,8 +1107,9 @@ class ClassElement extends ScopeContainerElement
Element lookupSuperInterfaceMember(SourceString memberName,
LibraryElement fromLibrary) {
bool isPrivate = memberName.isPrivate();
- for (Type t in interfaces) {
- Element e = t.element.lookupLocalMember(memberName);
+ for (InterfaceType t in interfaces) {
+ ClassElement cls = t.element;
+ Element e = cls.lookupLocalMember(memberName);
if (e === null) continue;
// Private members from a different library are not visible.
if (isPrivate && fromLibrary !== e.getLibrary()) continue;
@@ -1309,6 +1307,10 @@ class ClassElement extends ScopeContainerElement
ClassElement cloneTo(Element enclosing, DiagnosticListener listener) {
listener.internalErrorOnElement(this, 'unsupported operation');
}
+
+ Link<Type> get allSupertypesAndSelf() {
+ return allSupertypes.prepend(new InterfaceType(this));
+ }
}
class Elements {
« no previous file with comments | « no previous file | lib/compiler/implementation/patch_parser.dart » ('j') | lib/compiler/implementation/patch_parser.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698