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

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

Issue 2847143002: Fix KernelEquivalence.entityEquivalence for equi-named instance/top-level members (Closed)
Patch Set: Updated cf. comment 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 | « no previous file | tests/compiler/dart2js/kernel/closed_world2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/kernel/element_map.dart
diff --git a/pkg/compiler/lib/src/kernel/element_map.dart b/pkg/compiler/lib/src/kernel/element_map.dart
index 025838bb6b0f89d2866b8b14aa027487c1e65620..28c376ba3d9d8fca847a833b6189d65ef393140b 100644
--- a/pkg/compiler/lib/src/kernel/element_map.dart
+++ b/pkg/compiler/lib/src/kernel/element_map.dart
@@ -1250,25 +1250,6 @@ class WorldDeconstructionForTesting {
WorldDeconstructionForTesting(this.builder);
- KLibrary _getLibrary<E>(E member, Map<ir.Member, E> map) {
- ir.Library library;
- map.forEach((ir.Member node, E other) {
- if (library == null && member == other) {
- library = node.enclosingLibrary;
- }
- });
- if (library == null) {
- throw new ArgumentError("No library found for $member");
- }
- return builder._getLibrary(library);
- }
-
- KLibrary getLibraryForFunction(KFunction function) =>
- _getLibrary(function, builder._methodMap);
-
- KLibrary getLibraryForField(KField field) =>
- _getLibrary(field, builder._fieldMap);
-
KClass getSuperclassForClass(KClass cls) {
_KClassEnv env = builder._classEnvs[cls.classIndex];
ir.Supertype supertype = env.cls.supertype;
« no previous file with comments | « no previous file | tests/compiler/dart2js/kernel/closed_world2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698