| 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 ((options is AnalysisOptionsImpl) | 301 ((options is AnalysisOptionsImpl) |
| 302 ? this._options.nonnullableTypes != options.nonnullableTypes | 302 ? this._options.nonnullableTypes != options.nonnullableTypes |
| 303 : false) || | 303 : false) || |
| 304 ((options is AnalysisOptionsImpl) | 304 ((options is AnalysisOptionsImpl) |
| 305 ? this._options.implicitDynamic != options.implicitDynamic | 305 ? this._options.implicitDynamic != options.implicitDynamic |
| 306 : false) || | 306 : false) || |
| 307 this._options.enableStrictCallChecks != | 307 this._options.enableStrictCallChecks != |
| 308 options.enableStrictCallChecks || | 308 options.enableStrictCallChecks || |
| 309 this._options.enableGenericMethods != options.enableGenericMethods || | 309 this._options.enableGenericMethods != options.enableGenericMethods || |
| 310 this._options.enableSuperMixins != options.enableSuperMixins; | 310 this._options.enableSuperMixins != options.enableSuperMixins; |
| 311 int cacheSize = options.cacheSize; | |
| 312 if (this._options.cacheSize != cacheSize) { | |
| 313 this._options.cacheSize = cacheSize; | |
| 314 } | |
| 315 this._options.analyzeFunctionBodiesPredicate = | 311 this._options.analyzeFunctionBodiesPredicate = |
| 316 options.analyzeFunctionBodiesPredicate; | 312 options.analyzeFunctionBodiesPredicate; |
| 317 this._options.generateImplicitErrors = options.generateImplicitErrors; | 313 this._options.generateImplicitErrors = options.generateImplicitErrors; |
| 318 this._options.generateSdkErrors = options.generateSdkErrors; | 314 this._options.generateSdkErrors = options.generateSdkErrors; |
| 319 this._options.dart2jsHint = options.dart2jsHint; | 315 this._options.dart2jsHint = options.dart2jsHint; |
| 320 this._options.enableGenericMethods = options.enableGenericMethods; | 316 this._options.enableGenericMethods = options.enableGenericMethods; |
| 321 this._options.enableAssertInitializer = options.enableAssertInitializer; | 317 this._options.enableAssertInitializer = options.enableAssertInitializer; |
| 322 this._options.enableAssertMessage = options.enableAssertMessage; | 318 this._options.enableAssertMessage = options.enableAssertMessage; |
| 323 this._options.enableStrictCallChecks = options.enableStrictCallChecks; | 319 this._options.enableStrictCallChecks = options.enableStrictCallChecks; |
| 324 this._options.enableInitializingFormalAccess = | 320 this._options.enableInitializingFormalAccess = |
| (...skipping 1908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2233 } | 2229 } |
| 2234 DartSdk sdk = factory.dartSdk; | 2230 DartSdk sdk = factory.dartSdk; |
| 2235 if (sdk == null) { | 2231 if (sdk == null) { |
| 2236 throw new ArgumentError( | 2232 throw new ArgumentError( |
| 2237 "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"); |
| 2238 } | 2234 } |
| 2239 return new AnalysisCache( | 2235 return new AnalysisCache( |
| 2240 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); | 2236 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); |
| 2241 } | 2237 } |
| 2242 } | 2238 } |
| OLD | NEW |