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

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

Issue 2824123003: Make backend.setAnnotations (mostly) handle LibraryEntities. (Closed)
Patch Set: comments 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
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/native/resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/kernel/world_builder.dart
diff --git a/pkg/compiler/lib/src/kernel/world_builder.dart b/pkg/compiler/lib/src/kernel/world_builder.dart
index 5e9272a55585b5cb4b4b2fbf67c50c6c88cd31c0..f3548837b2fcaf79241650b8b6cad57855fd3f20 100644
--- a/pkg/compiler/lib/src/kernel/world_builder.dart
+++ b/pkg/compiler/lib/src/kernel/world_builder.dart
@@ -456,6 +456,11 @@ class KernelWorldBuilder extends KernelElementAdapterMixin {
LibraryEntity getLibrary(ir.Library node) => _getLibrary(node);
+ ir.Library getKernelLibrary(KLibrary entity) =>
+ _libraryEnvs[entity.libraryIndex].library;
+
+ ir.Class getKernelClass(KClass entity) => _classEnvs[entity.classIndex].cls;
+
@override
Local getLocalFunction(ir.TreeNode node) => _getLocal(node);
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/native/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698