| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 analyzer.src.context.context; | 5 library analyzer.src.context.context; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import 'package:analyzer/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 this._options.incremental = options.incremental; | 327 this._options.incremental = options.incremental; |
| 328 this._options.incrementalApi = options.incrementalApi; | 328 this._options.incrementalApi = options.incrementalApi; |
| 329 this._options.incrementalValidation = options.incrementalValidation; | 329 this._options.incrementalValidation = options.incrementalValidation; |
| 330 this._options.lint = options.lint; | 330 this._options.lint = options.lint; |
| 331 this._options.preserveComments = options.preserveComments; | 331 this._options.preserveComments = options.preserveComments; |
| 332 if (this._options.strongMode != options.strongMode) { | 332 if (this._options.strongMode != options.strongMode) { |
| 333 _typeSystem = null; | 333 _typeSystem = null; |
| 334 } | 334 } |
| 335 this._options.strongMode = options.strongMode; | 335 this._options.strongMode = options.strongMode; |
| 336 this._options.trackCacheDependencies = options.trackCacheDependencies; | 336 this._options.trackCacheDependencies = options.trackCacheDependencies; |
| 337 this._options.disableCacheFlushing = options.disableCacheFlushing; |
| 337 this._options.finerGrainedInvalidation = options.finerGrainedInvalidation; | 338 this._options.finerGrainedInvalidation = options.finerGrainedInvalidation; |
| 338 if (options is AnalysisOptionsImpl) { | 339 if (options is AnalysisOptionsImpl) { |
| 339 this._options.strongModeHints = options.strongModeHints; | 340 this._options.strongModeHints = options.strongModeHints; |
| 340 this._options.implicitCasts = options.implicitCasts; | 341 this._options.implicitCasts = options.implicitCasts; |
| 341 this._options.nonnullableTypes = options.nonnullableTypes; | 342 this._options.nonnullableTypes = options.nonnullableTypes; |
| 342 this._options.implicitDynamic = options.implicitDynamic; | 343 this._options.implicitDynamic = options.implicitDynamic; |
| 343 } | 344 } |
| 344 if (needsRecompute) { | 345 if (needsRecompute) { |
| 345 for (WorkManager workManager in workManagers) { | 346 for (WorkManager workManager in workManagers) { |
| 346 workManager.onAnalysisOptionsChanged(); | 347 workManager.onAnalysisOptionsChanged(); |
| (...skipping 1881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2228 } | 2229 } |
| 2229 DartSdk sdk = factory.dartSdk; | 2230 DartSdk sdk = factory.dartSdk; |
| 2230 if (sdk == null) { | 2231 if (sdk == null) { |
| 2231 throw new ArgumentError( | 2232 throw new ArgumentError( |
| 2232 "The source factory for an SDK analysis context must have a DartUriRes
olver"); | 2233 "The source factory for an SDK analysis context must have a DartUriRes
olver"); |
| 2233 } | 2234 } |
| 2234 return new AnalysisCache( | 2235 return new AnalysisCache( |
| 2235 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); | 2236 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); |
| 2236 } | 2237 } |
| 2237 } | 2238 } |
| OLD | NEW |