| OLD | NEW |
| 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:math' show max; | 9 import 'dart:math' show max; |
| 10 | 10 |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 searchEngine = _index != null ? createSearchEngine(_index) : null { | 250 searchEngine = _index != null ? createSearchEngine(_index) : null { |
| 251 _performance = performanceDuringStartup; | 251 _performance = performanceDuringStartup; |
| 252 operationQueue = new ServerOperationQueue(); | 252 operationQueue = new ServerOperationQueue(); |
| 253 contextDirectoryManager = new ServerContextManager( | 253 contextDirectoryManager = new ServerContextManager( |
| 254 this, resourceProvider, packageMapProvider, instrumentationService); | 254 this, resourceProvider, packageMapProvider, instrumentationService); |
| 255 contextDirectoryManager.defaultOptions.incremental = true; | 255 contextDirectoryManager.defaultOptions.incremental = true; |
| 256 contextDirectoryManager.defaultOptions.incrementalApi = | 256 contextDirectoryManager.defaultOptions.incrementalApi = |
| 257 analysisServerOptions.enableIncrementalResolutionApi; | 257 analysisServerOptions.enableIncrementalResolutionApi; |
| 258 contextDirectoryManager.defaultOptions.incrementalValidation = | 258 contextDirectoryManager.defaultOptions.incrementalValidation = |
| 259 analysisServerOptions.enableIncrementalResolutionValidation; | 259 analysisServerOptions.enableIncrementalResolutionValidation; |
| 260 contextDirectoryManager.defaultOptions.generateImplicitErrors = false; |
| 260 _noErrorNotification = analysisServerOptions.noErrorNotification; | 261 _noErrorNotification = analysisServerOptions.noErrorNotification; |
| 261 AnalysisEngine.instance.logger = new AnalysisLogger(); | 262 AnalysisEngine.instance.logger = new AnalysisLogger(); |
| 262 _onAnalysisStartedController = new StreamController.broadcast(); | 263 _onAnalysisStartedController = new StreamController.broadcast(); |
| 263 _onFileAnalyzedController = new StreamController.broadcast(); | 264 _onFileAnalyzedController = new StreamController.broadcast(); |
| 264 _onPriorityChangeController = | 265 _onPriorityChangeController = |
| 265 new StreamController<PriorityChangeEvent>.broadcast(); | 266 new StreamController<PriorityChangeEvent>.broadcast(); |
| 266 running = true; | 267 running = true; |
| 267 onAnalysisStarted.first.then((_) { | 268 onAnalysisStarted.first.then((_) { |
| 268 onAnalysisComplete.then((_) { | 269 onAnalysisComplete.then((_) { |
| 269 performanceAfterStartup = new ServerPerformance(); | 270 performanceAfterStartup = new ServerPerformance(); |
| (...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1362 /** | 1363 /** |
| 1363 * The [PerformanceTag] for time spent in server request handlers. | 1364 * The [PerformanceTag] for time spent in server request handlers. |
| 1364 */ | 1365 */ |
| 1365 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); | 1366 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); |
| 1366 | 1367 |
| 1367 /** | 1368 /** |
| 1368 * The [PerformanceTag] for time spent in split store microtasks. | 1369 * The [PerformanceTag] for time spent in split store microtasks. |
| 1369 */ | 1370 */ |
| 1370 static PerformanceTag splitStore = new PerformanceTag('splitStore'); | 1371 static PerformanceTag splitStore = new PerformanceTag('splitStore'); |
| 1371 } | 1372 } |
| OLD | NEW |