| 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 ? this._options.implicitCasts != options.implicitCasts | 299 ? this._options.implicitCasts != options.implicitCasts |
| 300 : false) || | 300 : false) || |
| 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 || | |
| 310 this._options.enableSuperMixins != options.enableSuperMixins || | 309 this._options.enableSuperMixins != options.enableSuperMixins || |
| 311 this._options.patchPlatform != options.patchPlatform; | 310 this._options.patchPlatform != options.patchPlatform; |
| 312 this._options.analyzeFunctionBodiesPredicate = | 311 this._options.analyzeFunctionBodiesPredicate = |
| 313 options.analyzeFunctionBodiesPredicate; | 312 options.analyzeFunctionBodiesPredicate; |
| 314 this._options.generateImplicitErrors = options.generateImplicitErrors; | 313 this._options.generateImplicitErrors = options.generateImplicitErrors; |
| 315 this._options.generateSdkErrors = options.generateSdkErrors; | 314 this._options.generateSdkErrors = options.generateSdkErrors; |
| 316 this._options.dart2jsHint = options.dart2jsHint; | 315 this._options.dart2jsHint = options.dart2jsHint; |
| 317 this._options.enableGenericMethods = options.enableGenericMethods; | |
| 318 this._options.enableAssertInitializer = options.enableAssertInitializer; | 316 this._options.enableAssertInitializer = options.enableAssertInitializer; |
| 319 this._options.enableAssertMessage = options.enableAssertMessage; | 317 this._options.enableAssertMessage = options.enableAssertMessage; |
| 320 this._options.enableStrictCallChecks = options.enableStrictCallChecks; | 318 this._options.enableStrictCallChecks = options.enableStrictCallChecks; |
| 321 this._options.enableInitializingFormalAccess = | 319 this._options.enableInitializingFormalAccess = |
| 322 options.enableInitializingFormalAccess; | 320 options.enableInitializingFormalAccess; |
| 323 this._options.enableLazyAssignmentOperators = | 321 this._options.enableLazyAssignmentOperators = |
| 324 options.enableLazyAssignmentOperators; | 322 options.enableLazyAssignmentOperators; |
| 325 this._options.enableSuperMixins = options.enableSuperMixins; | 323 this._options.enableSuperMixins = options.enableSuperMixins; |
| 326 this._options.enableTiming = options.enableTiming; | 324 this._options.enableTiming = options.enableTiming; |
| 327 this._options.hint = options.hint; | 325 this._options.hint = options.hint; |
| (...skipping 1909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2237 } | 2235 } |
| 2238 DartSdk sdk = factory.dartSdk; | 2236 DartSdk sdk = factory.dartSdk; |
| 2239 if (sdk == null) { | 2237 if (sdk == null) { |
| 2240 throw new ArgumentError( | 2238 throw new ArgumentError( |
| 2241 "The source factory for an SDK analysis context must have a DartUriRes
olver"); | 2239 "The source factory for an SDK analysis context must have a DartUriRes
olver"); |
| 2242 } | 2240 } |
| 2243 return new AnalysisCache( | 2241 return new AnalysisCache( |
| 2244 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); | 2242 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); |
| 2245 } | 2243 } |
| 2246 } | 2244 } |
| OLD | NEW |