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

Side by Side Diff: pkg/analysis_server/lib/src/analysis_server.dart

Issue 2834773003: Remove the limited invalidation feature. (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/server/driver.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analysis.server; 5 library analysis.server;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:core'; 9 import 'dart:core';
10 import 'dart:io' as io; 10 import 'dart:io' as io;
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 pluginManager = new PluginManager(resourceProvider, _getByteStorePath(), 415 pluginManager = new PluginManager(resourceProvider, _getByteStorePath(),
416 notificationManager, instrumentationService); 416 notificationManager, instrumentationService);
417 PluginWatcher pluginWatcher = 417 PluginWatcher pluginWatcher =
418 new PluginWatcher(resourceProvider, pluginManager); 418 new PluginWatcher(resourceProvider, pluginManager);
419 419
420 defaultContextOptions.incremental = true; 420 defaultContextOptions.incremental = true;
421 defaultContextOptions.incrementalApi = 421 defaultContextOptions.incrementalApi =
422 options.enableIncrementalResolutionApi; 422 options.enableIncrementalResolutionApi;
423 defaultContextOptions.incrementalValidation = 423 defaultContextOptions.incrementalValidation =
424 options.enableIncrementalResolutionValidation; 424 options.enableIncrementalResolutionValidation;
425 defaultContextOptions.finerGrainedInvalidation =
426 options.finerGrainedInvalidation;
427 defaultContextOptions.generateImplicitErrors = false; 425 defaultContextOptions.generateImplicitErrors = false;
428 operationQueue = new ServerOperationQueue(); 426 operationQueue = new ServerOperationQueue();
429 427
430 { 428 {
431 String name = options.newAnalysisDriverLog; 429 String name = options.newAnalysisDriverLog;
432 StringSink sink = new NullStringSink(); 430 StringSink sink = new NullStringSink();
433 if (name != null) { 431 if (name != null) {
434 if (name == 'stdout') { 432 if (name == 'stdout') {
435 sink = io.stdout; 433 sink = io.stdout;
436 } else if (name.startsWith('file:')) { 434 } else if (name.startsWith('file:')) {
(...skipping 1450 matching lines...) Expand 10 before | Expand all | Expand 10 after
1887 index.removeContext(context); 1885 index.removeContext(context);
1888 } 1886 }
1889 }); 1887 });
1890 } 1888 }
1891 } 1889 }
1892 1890
1893 class AnalysisServerOptions { 1891 class AnalysisServerOptions {
1894 bool enableIncrementalResolutionApi = false; 1892 bool enableIncrementalResolutionApi = false;
1895 bool enableIncrementalResolutionValidation = false; 1893 bool enableIncrementalResolutionValidation = false;
1896 bool enableNewAnalysisDriver = false; 1894 bool enableNewAnalysisDriver = false;
1897 bool finerGrainedInvalidation = false;
1898 bool noIndex = false; 1895 bool noIndex = false;
1899 bool useAnalysisHighlight2 = false; 1896 bool useAnalysisHighlight2 = false;
1900 String fileReadMode = 'as-is'; 1897 String fileReadMode = 'as-is';
1901 String newAnalysisDriverLog; 1898 String newAnalysisDriverLog;
1902 // IDE options 1899 // IDE options
1903 bool enableVerboseFlutterCompletions = false; 1900 bool enableVerboseFlutterCompletions = false;
1904 } 1901 }
1905 1902
1906 /** 1903 /**
1907 * Information about a file - an [AnalysisContext] that analyses the file, 1904 * Information about a file - an [AnalysisContext] that analyses the file,
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
2351 /** 2348 /**
2352 * The [PerformanceTag] for time spent in server request handlers. 2349 * The [PerformanceTag] for time spent in server request handlers.
2353 */ 2350 */
2354 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); 2351 static PerformanceTag serverRequests = new PerformanceTag('serverRequests');
2355 2352
2356 /** 2353 /**
2357 * The [PerformanceTag] for time spent in split store microtasks. 2354 * The [PerformanceTag] for time spent in split store microtasks.
2358 */ 2355 */
2359 static PerformanceTag splitStore = new PerformanceTag('splitStore'); 2356 static PerformanceTag splitStore = new PerformanceTag('splitStore');
2360 } 2357 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/server/driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698