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

Unified Diff: pkg/analysis_server/lib/src/analysis_server.dart

Issue 756193002: Add --enable-incremental-resolution option. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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/analysis_server/lib/driver.dart ('k') | pkg/analysis_server/lib/src/socket_server.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/analysis_server.dart
diff --git a/pkg/analysis_server/lib/src/analysis_server.dart b/pkg/analysis_server/lib/src/analysis_server.dart
index a22769431d6c4144556bfd1fa8455d1aa70a84fe..c34668222e6564b1097ec87e08f2241293031570 100644
--- a/pkg/analysis_server/lib/src/analysis_server.dart
+++ b/pkg/analysis_server/lib/src/analysis_server.dart
@@ -183,12 +183,15 @@ class AnalysisServer {
* running a full analysis server.
*/
AnalysisServer(this.channel, this.resourceProvider,
- PackageMapProvider packageMapProvider, this.index, this.defaultSdk,
+ PackageMapProvider packageMapProvider, this.index,
+ AnalysisServerOptions analysisServerOptions, this.defaultSdk,
{this.rethrowExceptions: true}) {
searchEngine = createSearchEngine(index);
operationQueue = new ServerOperationQueue(this);
contextDirectoryManager =
new ServerContextManager(this, resourceProvider, packageMapProvider);
+ contextDirectoryManager.defaultOptions.incremental =
+ analysisServerOptions.enableIncrementalResolution;
AnalysisEngine.instance.logger = new AnalysisLogger();
_onAnalysisStartedController = new StreamController.broadcast();
_onAnalysisCompleteController = new StreamController.broadcast();
@@ -913,6 +916,10 @@ class AnalysisServer {
}
+class AnalysisServerOptions {
+ bool enableIncrementalResolution = false;
+}
+
/**
* A [ContextsChangedEvent] indicate what contexts were added or removed.
*
@@ -949,6 +956,7 @@ class PriorityChangeEvent {
PriorityChangeEvent(this.firstSource);
}
+
class ServerContextManager extends ContextManager {
final AnalysisServer analysisServer;
« no previous file with comments | « pkg/analysis_server/lib/driver.dart ('k') | pkg/analysis_server/lib/src/socket_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698