Chromium Code Reviews| 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; |
| } |