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

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

Issue 2620363002: Introduce LibraryEntity (Closed)
Patch Set: Created 3 years, 11 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/serialization/equivalence.dart
diff --git a/pkg/compiler/lib/src/serialization/equivalence.dart b/pkg/compiler/lib/src/serialization/equivalence.dart
index 1feae1c1c4a299131cb88b0eac095e61275630e4..f3fc4f18dc61d5a46bfca9cf0167c7a8e82c747c 100644
--- a/pkg/compiler/lib/src/serialization/equivalence.dart
+++ b/pkg/compiler/lib/src/serialization/equivalence.dart
@@ -151,9 +151,11 @@ bool areSelectorsEquivalent(Selector a, Selector b) {
/// Returns `true` if the names [a] and [b] are equivalent.
bool areNamesEquivalent(Name a, Name b) {
+ LibraryElement library1 = a.library;
+ LibraryElement library2 = b.library;
return a.text == b.text &&
a.isSetter == b.isSetter &&
- areElementsEquivalent(a.library, b.library);
+ areElementsEquivalent(library1, library2);
}
/// Returns `true` if the dynamic uses [a] and [b] are equivalent.

Powered by Google App Engine
This is Rietveld 408576698