| 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/instrumentation/instrumentation.dart'; | 10 import 'package:analyzer/instrumentation/instrumentation.dart'; |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 this._options.generateImplicitErrors != | 258 this._options.generateImplicitErrors != |
| 259 options.generateImplicitErrors || | 259 options.generateImplicitErrors || |
| 260 this._options.generateSdkErrors != options.generateSdkErrors || | 260 this._options.generateSdkErrors != options.generateSdkErrors || |
| 261 this._options.dart2jsHint != options.dart2jsHint || | 261 this._options.dart2jsHint != options.dart2jsHint || |
| 262 (this._options.hint && !options.hint) || | 262 (this._options.hint && !options.hint) || |
| 263 (this._options.lint && !options.lint) || | 263 (this._options.lint && !options.lint) || |
| 264 this._options.preserveComments != options.preserveComments || | 264 this._options.preserveComments != options.preserveComments || |
| 265 this._options.strongMode != options.strongMode || | 265 this._options.strongMode != options.strongMode || |
| 266 this._options.enableStrictCallChecks != | 266 this._options.enableStrictCallChecks != |
| 267 options.enableStrictCallChecks || | 267 options.enableStrictCallChecks || |
| 268 this._options.enableGenericMethods != options.enableGenericMethods || |
| 268 this._options.enableSuperMixins != options.enableSuperMixins; | 269 this._options.enableSuperMixins != options.enableSuperMixins; |
| 269 int cacheSize = options.cacheSize; | 270 int cacheSize = options.cacheSize; |
| 270 if (this._options.cacheSize != cacheSize) { | 271 if (this._options.cacheSize != cacheSize) { |
| 271 this._options.cacheSize = cacheSize; | 272 this._options.cacheSize = cacheSize; |
| 272 } | 273 } |
| 273 this._options.analyzeFunctionBodiesPredicate = | 274 this._options.analyzeFunctionBodiesPredicate = |
| 274 options.analyzeFunctionBodiesPredicate; | 275 options.analyzeFunctionBodiesPredicate; |
| 275 this._options.generateImplicitErrors = options.generateImplicitErrors; | 276 this._options.generateImplicitErrors = options.generateImplicitErrors; |
| 276 this._options.generateSdkErrors = options.generateSdkErrors; | 277 this._options.generateSdkErrors = options.generateSdkErrors; |
| 277 this._options.dart2jsHint = options.dart2jsHint; | 278 this._options.dart2jsHint = options.dart2jsHint; |
| 279 this._options.enableGenericMethods = options.enableGenericMethods; |
| 278 this._options.enableStrictCallChecks = options.enableStrictCallChecks; | 280 this._options.enableStrictCallChecks = options.enableStrictCallChecks; |
| 279 this._options.enableSuperMixins = options.enableSuperMixins; | 281 this._options.enableSuperMixins = options.enableSuperMixins; |
| 280 this._options.hint = options.hint; | 282 this._options.hint = options.hint; |
| 281 this._options.incremental = options.incremental; | 283 this._options.incremental = options.incremental; |
| 282 this._options.incrementalApi = options.incrementalApi; | 284 this._options.incrementalApi = options.incrementalApi; |
| 283 this._options.incrementalValidation = options.incrementalValidation; | 285 this._options.incrementalValidation = options.incrementalValidation; |
| 284 this._options.lint = options.lint; | 286 this._options.lint = options.lint; |
| 285 this._options.preserveComments = options.preserveComments; | 287 this._options.preserveComments = options.preserveComments; |
| 286 this._options.strongMode = options.strongMode; | 288 this._options.strongMode = options.strongMode; |
| 287 if (needsRecompute) { | 289 if (needsRecompute) { |
| (...skipping 1851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2139 DartSdk sdk = factory.dartSdk; | 2141 DartSdk sdk = factory.dartSdk; |
| 2140 if (sdk == null) { | 2142 if (sdk == null) { |
| 2141 throw new IllegalArgumentException( | 2143 throw new IllegalArgumentException( |
| 2142 "The source factory for an SDK analysis context must have a DartUriRes
olver"); | 2144 "The source factory for an SDK analysis context must have a DartUriRes
olver"); |
| 2143 } | 2145 } |
| 2144 return new AnalysisCache(<CachePartition>[ | 2146 return new AnalysisCache(<CachePartition>[ |
| 2145 AnalysisEngine.instance.partitionManager_new.forSdk(sdk) | 2147 AnalysisEngine.instance.partitionManager_new.forSdk(sdk) |
| 2146 ]); | 2148 ]); |
| 2147 } | 2149 } |
| 2148 } | 2150 } |
| OLD | NEW |