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

Unified Diff: pkg/analyzer/lib/src/summary/resynthesize.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/lib/src/summary/resynthesize.dart
diff --git a/pkg/analyzer/lib/src/summary/resynthesize.dart b/pkg/analyzer/lib/src/summary/resynthesize.dart
index 34d4ccefa5fea871ec7ed078af75a9ebda948a97..e4fdb5df2cef7007d3486351d6b6aad23a152a5c 100644
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart
@@ -718,6 +718,8 @@ class _LibraryResynthesizer {
libraryElement.exportNamespace.definedNames.values.firstWhere(
(element) => element is FunctionElement && element.isEntryPoint,
orElse: () => null);
+ // Create the synthetic element for `loadLibrary`.
+ libraryElement.createLoadLibraryFunction(summaryResynthesizer.typeProvider);
// Done.
return libraryElement;
}
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/resolver_test.dart » ('j') | pkg/analyzer/test/generated/resolver_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698