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

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

Issue 2824423002: Compute NativeBasicData for KernelWorldBuilder (Closed)
Patch Set: Put computeNativeBasicData into KernelAnnotationProcessor. Created 3 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
Index: pkg/compiler/lib/src/compiler.dart
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index 67c4e599583b097f982e000f18d9dcc0501bb249..55093ea9abe2c253c60b31ba1f2570e0f682c895 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -1916,6 +1916,15 @@ class _CompilerElementEnvironment implements ElementEnvironment {
}
@override
+ void forEachClass(LibraryElement library, void f(ClassElement cls)) {
+ library.implementation.forEachLocalMember((member) {
+ if (member.isClass) {
+ f(member);
+ }
+ });
+ }
+
+ @override
LibraryElement lookupLibrary(Uri uri, {bool required: false}) {
LibraryElement library = _libraryProvider.lookupLibrary(uri);
// If the script of the library is synthesized, the library does not exist

Powered by Google App Engine
This is Rietveld 408576698