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

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

Issue 2882523003: Add forEachLibraryMember and forEachConstructor to ElementEnvironment (Closed)
Patch Set: Updated cf. comments. Created 3 years, 7 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 | pkg/compiler/lib/src/kernel/element_map_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/common_elements.dart
diff --git a/pkg/compiler/lib/src/common_elements.dart b/pkg/compiler/lib/src/common_elements.dart
index 205dbb7a2cee7b83188c3755544bee86a6f561e8..26c72ef6b17313c2d1dd9532830e438c18263c92 100644
--- a/pkg/compiler/lib/src/common_elements.dart
+++ b/pkg/compiler/lib/src/common_elements.dart
@@ -1177,6 +1177,9 @@ abstract class ElementEnvironment {
ClassEntity lookupClass(LibraryEntity library, String name,
{bool required: false});
+ /// Calls [f] for every top level member in [library].
+ void forEachLibraryMember(LibraryEntity library, void f(MemberEntity member));
+
/// Lookup the member [name] in [library], fail if the class is missing and
/// [required].
MemberEntity lookupLibraryMember(LibraryEntity library, String name,
@@ -1200,6 +1203,10 @@ abstract class ElementEnvironment {
void forEachClassMember(
ClassEntity cls, void f(ClassEntity declarer, MemberEntity member));
+ /// Calls [f] for every constructor declared in [cls].
+ void forEachConstructor(
+ ClassEntity cls, void f(ConstructorEntity constructor));
+
/// Returns the superclass of [cls].
///
/// If [skipUnnamedMixinApplications] is `true`, unnamed mixin applications
« no previous file with comments | « no previous file | pkg/compiler/lib/src/kernel/element_map_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698