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

Unified Diff: tests/compiler/dart2js/serialization/members_test.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: tests/compiler/dart2js/serialization/members_test.dart
diff --git a/tests/compiler/dart2js/serialization/members_test.dart b/tests/compiler/dart2js/serialization/members_test.dart
index 22e08992450256dda4dd10acf8c78212036fff30..42b9c87e6d08b1433a666bd7e750344c3334f2b6 100644
--- a/tests/compiler/dart2js/serialization/members_test.dart
+++ b/tests/compiler/dart2js/serialization/members_test.dart
@@ -87,12 +87,13 @@ void checkMembers(Compiler compiler1, ClassMemberMixin class1,
Name convertName(Name name, Compiler compiler) {
if (name.isPrivate) {
- LibraryElement library =
- compiler.libraryLoader.lookupLibrary(name.library.canonicalUri);
- if (!areElementsEquivalent(name.library, library)) {
- throw 'Libraries ${name.library} and ${library} are not equivalent';
+ LibraryElement library1 = name.library;
+ LibraryElement library2 =
+ compiler.libraryLoader.lookupLibrary(library1.canonicalUri);
+ if (!areElementsEquivalent(library1, library2)) {
+ throw 'Libraries ${library1} and ${library2} are not equivalent';
}
- name = new Name(name.text, library, isSetter: name.isSetter);
+ name = new Name(name.text, library2, isSetter: name.isSetter);
}
return name;
}
« pkg/compiler/lib/src/elements/entities.dart ('K') | « pkg/compiler/lib/src/typechecker.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698