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

Unified Diff: pkg/analyzer_cli/lib/src/incremental_analyzer.dart

Issue 2044513003: Serve INCLUDED_PARTS from incremental cache. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « pkg/analyzer/test/src/summary/incremental_cache_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_cli/lib/src/incremental_analyzer.dart
diff --git a/pkg/analyzer_cli/lib/src/incremental_analyzer.dart b/pkg/analyzer_cli/lib/src/incremental_analyzer.dart
index 432ed97bf4b23ba342c5e507560da43102f507cb..b4ad853d74d5ecdb35dde1ad578e3dfc72fec632 100644
--- a/pkg/analyzer_cli/lib/src/incremental_analyzer.dart
+++ b/pkg/analyzer_cli/lib/src/incremental_analyzer.dart
@@ -99,6 +99,15 @@ class _CacheBasedResultProvider extends ResynthesizerResultProvider {
}
// Source based results.
if (target is Source) {
+ if (result == INCLUDED_PARTS) {
+ List<Source> parts = cache.getLibraryParts(target);
+ if (parts != null) {
+ entry.setValue(result, parts, TargetedResult.EMPTY_LIST);
+ return true;
+ } else {
+ return false;
+ }
+ }
if (result == DART_ERRORS) {
// TODO(scheglov) provide actual errors
entry.setValue(result, <AnalysisError>[], TargetedResult.EMPTY_LIST);
« no previous file with comments | « pkg/analyzer/test/src/summary/incremental_cache_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698