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

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

Issue 2039773004: Start adding experimental incremental analysis mode into CLI analyzer. (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 | « no previous file | pkg/analyzer_cli/lib/src/incremental_analyzer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_cli/lib/src/driver.dart
diff --git a/pkg/analyzer_cli/lib/src/driver.dart b/pkg/analyzer_cli/lib/src/driver.dart
index 4d80c619888406413934e8a63c7d191d3652cf16..3b187162752fbbc1be7b27e8adb140fae086945c 100644
--- a/pkg/analyzer_cli/lib/src/driver.dart
+++ b/pkg/analyzer_cli/lib/src/driver.dart
@@ -37,6 +37,7 @@ import 'package:analyzer/src/task/options.dart';
import 'package:analyzer_cli/src/analyzer_impl.dart';
import 'package:analyzer_cli/src/build_mode.dart';
import 'package:analyzer_cli/src/error_formatter.dart';
+import 'package:analyzer_cli/src/incremental_analyzer.dart';
import 'package:analyzer_cli/src/options.dart';
import 'package:analyzer_cli/src/perf_report.dart';
import 'package:analyzer_cli/starter.dart';
@@ -86,6 +87,8 @@ class Driver implements CommandLineStarter {
/// creation.
CommandLineOptions _previousOptions;
+ IncrementalAnalysisData incrementalData;
+
@override
EmbeddedResolverProvider embeddedUriResolverProvider;
@@ -217,6 +220,8 @@ class Driver implements CommandLineStarter {
libUris.add(source.uri);
}
+ incrementalData?.finish();
+
// Check that each part has a corresponding source in the input list.
for (Source part in parts) {
bool found = false;
@@ -297,6 +302,9 @@ class Driver implements CommandLineStarter {
if (options.enableSuperMixins != _previousOptions.enableSuperMixins) {
return false;
}
+ if (options.incrementalCachePath != _previousOptions.incrementalCachePath) {
+ return false;
+ }
return true;
}
@@ -510,6 +518,8 @@ class Driver implements CommandLineStarter {
_chooseUriResolutionPolicy(options, embedderMap, packageInfo);
_context.sourceFactory = sourceFactory;
+
+ incrementalData = configureIncrementalAnalysis(options, context);
}
/// Return discovered packagespec, or `null` if none is found.
« no previous file with comments | « no previous file | pkg/analyzer_cli/lib/src/incremental_analyzer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698