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

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

Issue 1848543002: Support --persistent_worker flag in --build-mode. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fixes for review comments. Created 4 years, 9 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_cli/lib/src/driver.dart
diff --git a/pkg/analyzer_cli/lib/src/driver.dart b/pkg/analyzer_cli/lib/src/driver.dart
index 070d06821fbfc2adee3da1eef04afe27dc1df162..f3016d56ba06af436d9433795b820e32d98233c1 100644
--- a/pkg/analyzer_cli/lib/src/driver.dart
+++ b/pkg/analyzer_cli/lib/src/driver.dart
@@ -244,7 +244,11 @@ class Driver implements CommandLineStarter {
/// Perform analysis in build mode according to the given [options].
ErrorSeverity _buildModeAnalyze(CommandLineOptions options) {
return _analyzeAllTag.makeCurrentWhile(() {
- return new BuildMode(options, stats).analyze();
+ if (options.buildModePersistentWorker) {
+ new WorkerLoop.std().run();
+ } else {
+ return new BuildMode(options, stats).analyze();
+ }
});
}

Powered by Google App Engine
This is Rietveld 408576698