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

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

Issue 2824423002: Compute NativeBasicData for KernelWorldBuilder (Closed)
Patch Set: 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 13443a32c58013977045d93ba84c3ff997dc75b2..c64f2ad74e7592f6b35520c19338c20907b39077 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -1957,6 +1957,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