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

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

Issue 10119010: Start propagating non-primitive types in the backend, and fold instructions that know about the typ… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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 | « lib/compiler/implementation/compiler.dart ('k') | lib/compiler/implementation/operations.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
===================================================================
--- lib/compiler/implementation/elements/elements.dart (revision 6727)
+++ lib/compiler/implementation/elements/elements.dart (working copy)
@@ -749,6 +749,17 @@
return null;
}
+ /**
+ * Find the first member in the class chain with the given
+ * [memberName]. This method is NOT to be used for resolving
+ * unqualified sends because it does not implement the scoping
+ * rules, where library scope comes before superclass scope.
+ */
+ Element lookupMember(SourceString memberName) {
+ Element localMember = localMembers[memberName];
+ return localMember === null ? lookupSuperMember(memberName) : localMember;
+ }
+
Element lookupConstructor(SourceString className,
[SourceString constructorName =
const SourceString(''),
« no previous file with comments | « lib/compiler/implementation/compiler.dart ('k') | lib/compiler/implementation/operations.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698