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

Unified Diff: test/codegen/recorder_test.dart

Issue 2336903002: Stop using LibraryElement.visibleLibraries getter. (Closed)
Patch Set: Created 4 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/recorder_test.dart
diff --git a/test/codegen/recorder_test.dart b/test/codegen/recorder_test.dart
index b2d8019558993588a84bb4826e3291d42768607a..912ca09e2b0b6992650e4719bc9b613cb7f1c548 100644
--- a/test/codegen/recorder_test.dart
+++ b/test/codegen/recorder_test.dart
@@ -89,8 +89,7 @@ main() {
recorder.lookupParent(lib.getType('F2'));
recorder.lookupParent(lib.getType('G'));
recorder.lookupParent(lib.getType('H'));
- var coreLib =
- lib.visibleLibraries.firstWhere((l) => l.displayName == 'dart.core');
+ var coreLib = lib.context.typeProvider.objectType.element.library;
recorder.lookupParent(coreLib.getType('int'));
recorder.lookupParent(coreLib.getType('num'));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698