| 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 this._options.preserveComments != options.preserveComments || | 278 this._options.preserveComments != options.preserveComments || |
| 279 this._options.strongMode != options.strongMode || | 279 this._options.strongMode != options.strongMode || |
| 280 this._options.enableAssertInitializer != | 280 this._options.enableAssertInitializer != |
| 281 options.enableAssertInitializer || | 281 options.enableAssertInitializer || |
| 282 this._options.enableLazyAssignmentOperators != | 282 this._options.enableLazyAssignmentOperators != |
| 283 options.enableLazyAssignmentOperators || | 283 options.enableLazyAssignmentOperators || |
| 284 ((options is AnalysisOptionsImpl) | 284 ((options is AnalysisOptionsImpl) |
| 285 ? this._options.strongModeHints != options.strongModeHints | 285 ? this._options.strongModeHints != options.strongModeHints |
| 286 : false) || | 286 : false) || |
| 287 ((options is AnalysisOptionsImpl) | 287 ((options is AnalysisOptionsImpl) |
| 288 ? this._options.declarationCasts != options.declarationCasts |
| 289 : false) || |
| 290 ((options is AnalysisOptionsImpl) |
| 288 ? this._options.implicitCasts != options.implicitCasts | 291 ? this._options.implicitCasts != options.implicitCasts |
| 289 : false) || | 292 : false) || |
| 290 ((options is AnalysisOptionsImpl) | 293 ((options is AnalysisOptionsImpl) |
| 291 ? this._options.nonnullableTypes != options.nonnullableTypes | 294 ? this._options.nonnullableTypes != options.nonnullableTypes |
| 292 : false) || | 295 : false) || |
| 293 ((options is AnalysisOptionsImpl) | 296 ((options is AnalysisOptionsImpl) |
| 294 ? this._options.implicitDynamic != options.implicitDynamic | 297 ? this._options.implicitDynamic != options.implicitDynamic |
| 295 : false) || | 298 : false) || |
| 296 this._options.enableStrictCallChecks != | 299 this._options.enableStrictCallChecks != |
| 297 options.enableStrictCallChecks || | 300 options.enableStrictCallChecks || |
| (...skipping 18 matching lines...) Expand all Loading... |
| 316 this._options.preserveComments = options.preserveComments; | 319 this._options.preserveComments = options.preserveComments; |
| 317 if (this._options.strongMode != options.strongMode) { | 320 if (this._options.strongMode != options.strongMode) { |
| 318 _typeSystem = null; | 321 _typeSystem = null; |
| 319 } | 322 } |
| 320 this._options.strongMode = options.strongMode; | 323 this._options.strongMode = options.strongMode; |
| 321 this._options.trackCacheDependencies = options.trackCacheDependencies; | 324 this._options.trackCacheDependencies = options.trackCacheDependencies; |
| 322 this._options.disableCacheFlushing = options.disableCacheFlushing; | 325 this._options.disableCacheFlushing = options.disableCacheFlushing; |
| 323 this._options.patchPaths = options.patchPaths; | 326 this._options.patchPaths = options.patchPaths; |
| 324 if (options is AnalysisOptionsImpl) { | 327 if (options is AnalysisOptionsImpl) { |
| 325 this._options.strongModeHints = options.strongModeHints; | 328 this._options.strongModeHints = options.strongModeHints; |
| 329 this._options.declarationCasts = options.declarationCasts; |
| 326 this._options.implicitCasts = options.implicitCasts; | 330 this._options.implicitCasts = options.implicitCasts; |
| 327 this._options.nonnullableTypes = options.nonnullableTypes; | 331 this._options.nonnullableTypes = options.nonnullableTypes; |
| 328 this._options.implicitDynamic = options.implicitDynamic; | 332 this._options.implicitDynamic = options.implicitDynamic; |
| 329 } | 333 } |
| 330 if (needsRecompute) { | 334 if (needsRecompute) { |
| 331 for (WorkManager workManager in workManagers) { | 335 for (WorkManager workManager in workManagers) { |
| 332 workManager.onAnalysisOptionsChanged(); | 336 workManager.onAnalysisOptionsChanged(); |
| 333 } | 337 } |
| 334 } | 338 } |
| 335 } | 339 } |
| (...skipping 1769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2105 } | 2109 } |
| 2106 DartSdk sdk = factory.dartSdk; | 2110 DartSdk sdk = factory.dartSdk; |
| 2107 if (sdk == null) { | 2111 if (sdk == null) { |
| 2108 throw new ArgumentError( | 2112 throw new ArgumentError( |
| 2109 "The source factory for an SDK analysis context must have a DartUriRes
olver"); | 2113 "The source factory for an SDK analysis context must have a DartUriRes
olver"); |
| 2110 } | 2114 } |
| 2111 return new AnalysisCache( | 2115 return new AnalysisCache( |
| 2112 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); | 2116 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); |
| 2113 } | 2117 } |
| 2114 } | 2118 } |
| OLD | NEW |