| 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 ((options is AnalysisOptionsImpl) | 291 ((options is AnalysisOptionsImpl) |
| 292 ? this._options.implicitCasts != options.implicitCasts | 292 ? this._options.implicitCasts != options.implicitCasts |
| 293 : false) || | 293 : false) || |
| 294 ((options is AnalysisOptionsImpl) | 294 ((options is AnalysisOptionsImpl) |
| 295 ? this._options.implicitDynamic != options.implicitDynamic | 295 ? this._options.implicitDynamic != options.implicitDynamic |
| 296 : false) || | 296 : false) || |
| 297 this._options.enableStrictCallChecks != | 297 this._options.enableStrictCallChecks != |
| 298 options.enableStrictCallChecks || | 298 options.enableStrictCallChecks || |
| 299 this._options.enableGenericMethods != options.enableGenericMethods || | 299 this._options.enableGenericMethods != options.enableGenericMethods || |
| 300 this._options.enableAsync != options.enableAsync || | 300 this._options.enableAsync != options.enableAsync || |
| 301 this._options.enableSuperMixins != options.enableSuperMixins || | 301 this._options.enableSuperMixins != options.enableSuperMixins; |
| 302 this._options.enableTrailingCommas != options.enableTrailingCommas; | |
| 303 int cacheSize = options.cacheSize; | 302 int cacheSize = options.cacheSize; |
| 304 if (this._options.cacheSize != cacheSize) { | 303 if (this._options.cacheSize != cacheSize) { |
| 305 this._options.cacheSize = cacheSize; | 304 this._options.cacheSize = cacheSize; |
| 306 } | 305 } |
| 307 this._options.analyzeFunctionBodiesPredicate = | 306 this._options.analyzeFunctionBodiesPredicate = |
| 308 options.analyzeFunctionBodiesPredicate; | 307 options.analyzeFunctionBodiesPredicate; |
| 309 this._options.generateImplicitErrors = options.generateImplicitErrors; | 308 this._options.generateImplicitErrors = options.generateImplicitErrors; |
| 310 this._options.generateSdkErrors = options.generateSdkErrors; | 309 this._options.generateSdkErrors = options.generateSdkErrors; |
| 311 this._options.dart2jsHint = options.dart2jsHint; | 310 this._options.dart2jsHint = options.dart2jsHint; |
| 312 this._options.enableGenericMethods = options.enableGenericMethods; | 311 this._options.enableGenericMethods = options.enableGenericMethods; |
| 313 this._options.enableAssertMessage = options.enableAssertMessage; | 312 this._options.enableAssertMessage = options.enableAssertMessage; |
| 314 this._options.enableStrictCallChecks = options.enableStrictCallChecks; | 313 this._options.enableStrictCallChecks = options.enableStrictCallChecks; |
| 315 this._options.enableAsync = options.enableAsync; | 314 this._options.enableAsync = options.enableAsync; |
| 316 this._options.enableSuperMixins = options.enableSuperMixins; | 315 this._options.enableSuperMixins = options.enableSuperMixins; |
| 317 this._options.enableTiming = options.enableTiming; | 316 this._options.enableTiming = options.enableTiming; |
| 318 this._options.enableTrailingCommas = options.enableTrailingCommas; | |
| 319 this._options.hint = options.hint; | 317 this._options.hint = options.hint; |
| 320 this._options.incremental = options.incremental; | 318 this._options.incremental = options.incremental; |
| 321 this._options.incrementalApi = options.incrementalApi; | 319 this._options.incrementalApi = options.incrementalApi; |
| 322 this._options.incrementalValidation = options.incrementalValidation; | 320 this._options.incrementalValidation = options.incrementalValidation; |
| 323 this._options.lint = options.lint; | 321 this._options.lint = options.lint; |
| 324 this._options.preserveComments = options.preserveComments; | 322 this._options.preserveComments = options.preserveComments; |
| 325 this._options.strongMode = options.strongMode; | 323 this._options.strongMode = options.strongMode; |
| 326 this._options.trackCacheDependencies = options.trackCacheDependencies; | 324 this._options.trackCacheDependencies = options.trackCacheDependencies; |
| 327 this._options.finerGrainedInvalidation = options.finerGrainedInvalidation; | 325 this._options.finerGrainedInvalidation = options.finerGrainedInvalidation; |
| 328 if (options is AnalysisOptionsImpl) { | 326 if (options is AnalysisOptionsImpl) { |
| (...skipping 1973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2302 } | 2300 } |
| 2303 DartSdk sdk = factory.dartSdk; | 2301 DartSdk sdk = factory.dartSdk; |
| 2304 if (sdk == null) { | 2302 if (sdk == null) { |
| 2305 throw new IllegalArgumentException( | 2303 throw new IllegalArgumentException( |
| 2306 "The source factory for an SDK analysis context must have a DartUriRes
olver"); | 2304 "The source factory for an SDK analysis context must have a DartUriRes
olver"); |
| 2307 } | 2305 } |
| 2308 return new AnalysisCache( | 2306 return new AnalysisCache( |
| 2309 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); | 2307 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); |
| 2310 } | 2308 } |
| 2311 } | 2309 } |
| OLD | NEW |