| 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:core' hide Resource; | 9 import 'dart:core' hide Resource; |
| 10 import 'dart:math' show max; | 10 import 'dart:math' show max; |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 defaultContextOptions.incremental = true; | 323 defaultContextOptions.incremental = true; |
| 324 defaultContextOptions.incrementalApi = | 324 defaultContextOptions.incrementalApi = |
| 325 options.enableIncrementalResolutionApi; | 325 options.enableIncrementalResolutionApi; |
| 326 defaultContextOptions.incrementalValidation = | 326 defaultContextOptions.incrementalValidation = |
| 327 options.enableIncrementalResolutionValidation; | 327 options.enableIncrementalResolutionValidation; |
| 328 defaultContextOptions.generateImplicitErrors = false; | 328 defaultContextOptions.generateImplicitErrors = false; |
| 329 operationQueue = new ServerOperationQueue(); | 329 operationQueue = new ServerOperationQueue(); |
| 330 sdkManager = new DartSdkManager(defaultSdkCreator); | 330 sdkManager = new DartSdkManager(defaultSdkCreator); |
| 331 if (useSingleContextManager) { | 331 if (useSingleContextManager) { |
| 332 contextManager = new SingleContextManager(resourceProvider, sdkManager, | 332 contextManager = new SingleContextManager(resourceProvider, sdkManager, |
| 333 () => packageResolverProvider(null), analyzedFilesGlobs); | 333 packageResolverProvider, analyzedFilesGlobs, defaultContextOptions); |
| 334 } else { | 334 } else { |
| 335 contextManager = new ContextManagerImpl( | 335 contextManager = new ContextManagerImpl( |
| 336 resourceProvider, | 336 resourceProvider, |
| 337 sdkManager, | 337 sdkManager, |
| 338 packageResolverProvider, | 338 packageResolverProvider, |
| 339 embeddedResolverProvider, | 339 embeddedResolverProvider, |
| 340 packageMapProvider, | 340 packageMapProvider, |
| 341 analyzedFilesGlobs, | 341 analyzedFilesGlobs, |
| 342 instrumentationService, | 342 instrumentationService, |
| 343 defaultContextOptions); | 343 defaultContextOptions); |
| (...skipping 1421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1765 /** | 1765 /** |
| 1766 * The [PerformanceTag] for time spent in server request handlers. | 1766 * The [PerformanceTag] for time spent in server request handlers. |
| 1767 */ | 1767 */ |
| 1768 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); | 1768 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); |
| 1769 | 1769 |
| 1770 /** | 1770 /** |
| 1771 * The [PerformanceTag] for time spent in split store microtasks. | 1771 * The [PerformanceTag] for time spent in split store microtasks. |
| 1772 */ | 1772 */ |
| 1773 static PerformanceTag splitStore = new PerformanceTag('splitStore'); | 1773 static PerformanceTag splitStore = new PerformanceTag('splitStore'); |
| 1774 } | 1774 } |
| OLD | NEW |