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

Unified Diff: pkg/analyzer/test/generated/resolver_test.dart

Issue 1583613002: Create LibraryElement.loadLibrary during resynth. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Create 'loadLibrary()' for dart:core too. Created 4 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/analyzer/test/generated/resolver_test.dart
diff --git a/pkg/analyzer/test/generated/resolver_test.dart b/pkg/analyzer/test/generated/resolver_test.dart
index 4722a658a21ad7ceae0acbfa1032c42336ec8b79..be7ece4637a796e9beb09213bf5e35a8771c1737 100644
--- a/pkg/analyzer/test/generated/resolver_test.dart
+++ b/pkg/analyzer/test/generated/resolver_test.dart
@@ -407,6 +407,11 @@ class AnalysisContextFactory {
library.publicNamespace = new PublicNamespaceBuilder().build(library);
}
context.recordLibraryElements(elementMap);
+ // Create the synthetic element for `loadLibrary`.
+ coreLibrary.createLoadLibraryFunction(context.typeProvider);
Paul Berry 2016/01/13 16:53:38 Nit: why not just loop over the libraries in eleme
+ asyncLibrary.createLoadLibraryFunction(context.typeProvider);
+ htmlLibrary.createLoadLibraryFunction(context.typeProvider);
+ mathLibrary.createLoadLibraryFunction(context.typeProvider);
return context;
}
}
« no previous file with comments | « pkg/analyzer/lib/src/summary/resynthesize.dart ('k') | pkg/analyzer/test/src/summary/resynthesize_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698