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

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: 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 23b103cb3f4d6c44f4390ee411e1e9892b8566e2..565d23c87da6c596fc1b554d05e0d2d95d49c3af 100644
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart
@@ -714,6 +714,11 @@ class _LibraryResynthesizer {
libraryElement.exportNamespace.definedNames.values.firstWhere(
(element) => element is FunctionElement && element.isEntryPoint,
orElse: () => null);
+ // Create the synthetic element for `loadLibrary`.
+ if (!isCoreLibrary) {
Paul Berry 2016/01/13 16:07:49 This seems like a bug. The language spec allows `
scheglov 2016/01/13 16:51:54 Done.
+ libraryElement
+ .createLoadLibraryFunction(summaryResynthesizer.typeProvider);
+ }
// Done.
return libraryElement;
}

Powered by Google App Engine
This is Rietveld 408576698