Chromium Code Reviews
DescriptionDelay TypeProvider.objectType access until after dart:core resynthesizing.
This way we solve a chicken-and-egg problem with TypeProvider.
Fix for referencing elements from non-first part.
Fix for TODO to update implicit fields for a getter/setter pair.
The type List has it, so I have to fix it to use for SDK summaries.
Add SummaryTypeProvider to use with SDK summaries.
It is initialized in two steps: first dart:core, then dart:async libraries.
resynthesizer = new SummaryResynthesizer(context, typeProvider,
_getPrelinkedSummary, _getUnlinkedSummary, context.sourceFactory);
_buildCoreLibrary();
_buildAsyncLibrary();
void _buildCoreLibrary() {
LibraryElement library = resynthesizer.getLibraryElement('dart:core');
typeProvider.initializeCore(library);
}
void _buildAsyncLibrary() {
LibraryElement library = resynthesizer.getLibraryElement('dart:async');
typeProvider.initializeAsync(library);
}
R=paulberry@google.com, brianwilkerson@google.com
BUG=
Committed: https://github.com/dart-lang/sdk/commit/4b1048f80b04a0101f34ffbe8a311723fcf47d66
Patch Set 1 #
Total comments: 4
Patch Set 2 : Tweaks for review comments. #
Messages
Total messages: 6 (1 generated)
|
|||||||||||||||||||||||||||||||||||||