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 11 matching lines...) Expand all Loading... |
305 this._options.incremental = options.incremental; | 308 this._options.incremental = options.incremental; |
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 if (options is AnalysisOptionsImpl) { | 315 if (options is AnalysisOptionsImpl) { |
313 this._options.strongModeHints = options.strongModeHints; | 316 this._options.strongModeHints = options.strongModeHints; |
314 this._options.implicitCasts = options.implicitCasts; | 317 this._options.implicitCasts = options.implicitCasts; |
| 318 this._options.implicitDynamic = options.implicitDynamic; |
315 } | 319 } |
316 if (needsRecompute) { | 320 if (needsRecompute) { |
317 for (WorkManager workManager in workManagers) { | 321 for (WorkManager workManager in workManagers) { |
318 workManager.onAnalysisOptionsChanged(); | 322 workManager.onAnalysisOptionsChanged(); |
319 } | 323 } |
320 } | 324 } |
321 } | 325 } |
322 | 326 |
323 @override | 327 @override |
324 void set analysisPriorityOrder(List<Source> sources) { | 328 void set analysisPriorityOrder(List<Source> sources) { |
(...skipping 1914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2239 } | 2243 } |
2240 DartSdk sdk = factory.dartSdk; | 2244 DartSdk sdk = factory.dartSdk; |
2241 if (sdk == null) { | 2245 if (sdk == null) { |
2242 throw new IllegalArgumentException( | 2246 throw new IllegalArgumentException( |
2243 "The source factory for an SDK analysis context must have a DartUriRes
olver"); | 2247 "The source factory for an SDK analysis context must have a DartUriRes
olver"); |
2244 } | 2248 } |
2245 return new AnalysisCache( | 2249 return new AnalysisCache( |
2246 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); | 2250 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); |
2247 } | 2251 } |
2248 } | 2252 } |
OLD | NEW |