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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 (this._options.lint && !options.lint) || | 274 (this._options.lint && !options.lint) || |
275 this._options.preserveComments != options.preserveComments || | 275 this._options.preserveComments != options.preserveComments || |
276 this._options.strongMode != options.strongMode || | 276 this._options.strongMode != options.strongMode || |
277 this._options.enableAssertMessage != options.enableAssertMessage || | 277 this._options.enableAssertMessage != options.enableAssertMessage || |
278 ((options is AnalysisOptionsImpl) | 278 ((options is AnalysisOptionsImpl) |
279 ? this._options.strongModeHints != options.strongModeHints | 279 ? this._options.strongModeHints != options.strongModeHints |
280 : false) || | 280 : false) || |
281 ((options is AnalysisOptionsImpl) | 281 ((options is AnalysisOptionsImpl) |
282 ? this._options.implicitCasts != options.implicitCasts | 282 ? this._options.implicitCasts != options.implicitCasts |
283 : false) || | 283 : false) || |
| 284 ((options is AnalysisOptionsImpl) |
| 285 ? this._options.implicitDynamic != options.implicitDynamic |
| 286 : false) || |
284 this._options.enableStrictCallChecks != | 287 this._options.enableStrictCallChecks != |
285 options.enableStrictCallChecks || | 288 options.enableStrictCallChecks || |
286 this._options.enableGenericMethods != options.enableGenericMethods || | 289 this._options.enableGenericMethods != options.enableGenericMethods || |
287 this._options.enableAsync != options.enableAsync || | 290 this._options.enableAsync != options.enableAsync || |
288 this._options.enableSuperMixins != options.enableSuperMixins; | 291 this._options.enableSuperMixins != options.enableSuperMixins; |
289 int cacheSize = options.cacheSize; | 292 int cacheSize = options.cacheSize; |
290 if (this._options.cacheSize != cacheSize) { | 293 if (this._options.cacheSize != cacheSize) { |
291 this._options.cacheSize = cacheSize; | 294 this._options.cacheSize = cacheSize; |
292 } | 295 } |
293 this._options.analyzeFunctionBodiesPredicate = | 296 this._options.analyzeFunctionBodiesPredicate = |
(...skipping 12 matching lines...) Expand all Loading... |
306 this._options.incrementalApi = options.incrementalApi; | 309 this._options.incrementalApi = options.incrementalApi; |
307 this._options.incrementalValidation = options.incrementalValidation; | 310 this._options.incrementalValidation = options.incrementalValidation; |
308 this._options.lint = options.lint; | 311 this._options.lint = options.lint; |
309 this._options.preserveComments = options.preserveComments; | 312 this._options.preserveComments = options.preserveComments; |
310 this._options.strongMode = options.strongMode; | 313 this._options.strongMode = options.strongMode; |
311 this._options.trackCacheDependencies = options.trackCacheDependencies; | 314 this._options.trackCacheDependencies = options.trackCacheDependencies; |
312 this._options.finerGrainedInvalidation = options.finerGrainedInvalidation; | 315 this._options.finerGrainedInvalidation = options.finerGrainedInvalidation; |
313 if (options is AnalysisOptionsImpl) { | 316 if (options is AnalysisOptionsImpl) { |
314 this._options.strongModeHints = options.strongModeHints; | 317 this._options.strongModeHints = options.strongModeHints; |
315 this._options.implicitCasts = options.implicitCasts; | 318 this._options.implicitCasts = options.implicitCasts; |
| 319 this._options.implicitDynamic = options.implicitDynamic; |
316 } | 320 } |
317 if (needsRecompute) { | 321 if (needsRecompute) { |
318 for (WorkManager workManager in workManagers) { | 322 for (WorkManager workManager in workManagers) { |
319 workManager.onAnalysisOptionsChanged(); | 323 workManager.onAnalysisOptionsChanged(); |
320 } | 324 } |
321 } | 325 } |
322 } | 326 } |
323 | 327 |
324 @override | 328 @override |
325 void set analysisPriorityOrder(List<Source> sources) { | 329 void set analysisPriorityOrder(List<Source> sources) { |
(...skipping 1930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2256 } | 2260 } |
2257 DartSdk sdk = factory.dartSdk; | 2261 DartSdk sdk = factory.dartSdk; |
2258 if (sdk == null) { | 2262 if (sdk == null) { |
2259 throw new IllegalArgumentException( | 2263 throw new IllegalArgumentException( |
2260 "The source factory for an SDK analysis context must have a DartUriRes
olver"); | 2264 "The source factory for an SDK analysis context must have a DartUriRes
olver"); |
2261 } | 2265 } |
2262 return new AnalysisCache( | 2266 return new AnalysisCache( |
2263 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); | 2267 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); |
2264 } | 2268 } |
2265 } | 2269 } |
OLD | NEW |