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

Unified Diff: pkg/analyzer/lib/src/summary/summary_sdk.dart

Issue 1624853002: Store the result of type inference in summaries. (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/summary_sdk.dart
diff --git a/pkg/analyzer/lib/src/summary/summary_sdk.dart b/pkg/analyzer/lib/src/summary/summary_sdk.dart
index e37c536b79daafad69dbf580de2b2d159556d08b..95c33f4a6f8d7f20047d007089d54f3cc11f97b5 100644
--- a/pkg/analyzer/lib/src/summary/summary_sdk.dart
+++ b/pkg/analyzer/lib/src/summary/summary_sdk.dart
@@ -138,7 +138,9 @@ class SdkSummaryResynthesizer extends SummaryResynthesizer {
SdkSummaryResynthesizer(AnalysisContext context, TypeProvider typeProvider,
SourceFactory sourceFactory, this.bundle)
- : super(null, context, typeProvider, sourceFactory) {
+ : super(null, context, typeProvider, sourceFactory, false) {
+ // TODO(paulberry): we always resynthesize the summary in weak mode. Is
+ // this ok?
for (int i = 0; i < bundle.unlinkedUnitUris.length; i++) {
unlinkedSummaries[bundle.unlinkedUnitUris[i]] = bundle.unlinkedUnits[i];
}

Powered by Google App Engine
This is Rietveld 408576698