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

Unified Diff: pkg/compiler/lib/src/compiler.dart

Issue 2781483002: Mostly use Entity in InterceptorData (Closed)
Patch Set: Created 3 years, 9 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 | « pkg/compiler/lib/src/common_elements.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/compiler.dart
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index bf91423f5b835d8912f3ba71b1a744abaa3eb910..31afbc6849b8c39014b2977634a562ebccf9d69b 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -1992,6 +1992,26 @@ class _CompilerElementEnvironment implements ElementEnvironment {
}
@override
+ void forEachClassMember(
+ ClassElement cls, void f(ClassElement declarer, MemberElement member)) {
+ cls.ensureResolved(_resolution);
+ cls.forEachMember((ClassElement declarer, MemberElement member) {
+ if (member.isSynthesized) return;
+ f(declarer, member);
+ }, includeSuperAndInjectedMembers: true);
+ }
+
+ @override
+ void forEachMixin(ClassElement cls, void f(ClassElement mixin)) {
+ for (; cls != null; cls = cls.superclass) {
+ if (cls.isMixinApplication) {
+ MixinApplicationElement mixinApplication = cls;
+ f(mixinApplication.mixin);
+ }
+ }
+ }
+
+ @override
MemberElement lookupLibraryMember(LibraryElement library, String name,
{bool setter: false, bool required: false}) {
Element member = library.implementation.findLocal(name);
« no previous file with comments | « pkg/compiler/lib/src/common_elements.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698