| 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 this._options.generateImplicitErrors = options.generateImplicitErrors; | 281 this._options.generateImplicitErrors = options.generateImplicitErrors; |
| 282 this._options.generateSdkErrors = options.generateSdkErrors; | 282 this._options.generateSdkErrors = options.generateSdkErrors; |
| 283 this._options.dart2jsHint = options.dart2jsHint; | 283 this._options.dart2jsHint = options.dart2jsHint; |
| 284 this._options.enableGenericMethods = options.enableGenericMethods; | 284 this._options.enableGenericMethods = options.enableGenericMethods; |
| 285 this._options.enableAssertMessage = options.enableAssertMessage; | 285 this._options.enableAssertMessage = options.enableAssertMessage; |
| 286 this._options.enableStrictCallChecks = options.enableStrictCallChecks; | 286 this._options.enableStrictCallChecks = options.enableStrictCallChecks; |
| 287 this._options.enableAsync = options.enableAsync; | 287 this._options.enableAsync = options.enableAsync; |
| 288 this._options.enableConditionalDirectives = | 288 this._options.enableConditionalDirectives = |
| 289 options.enableConditionalDirectives; | 289 options.enableConditionalDirectives; |
| 290 this._options.enableSuperMixins = options.enableSuperMixins; | 290 this._options.enableSuperMixins = options.enableSuperMixins; |
| 291 this._options.enableTiming = options.enableTiming; |
| 291 this._options.hint = options.hint; | 292 this._options.hint = options.hint; |
| 292 this._options.incremental = options.incremental; | 293 this._options.incremental = options.incremental; |
| 293 this._options.incrementalApi = options.incrementalApi; | 294 this._options.incrementalApi = options.incrementalApi; |
| 294 this._options.incrementalValidation = options.incrementalValidation; | 295 this._options.incrementalValidation = options.incrementalValidation; |
| 295 this._options.lint = options.lint; | 296 this._options.lint = options.lint; |
| 296 this._options.preserveComments = options.preserveComments; | 297 this._options.preserveComments = options.preserveComments; |
| 297 this._options.strongMode = options.strongMode; | 298 this._options.strongMode = options.strongMode; |
| 298 if (options is AnalysisOptionsImpl) { | 299 if (options is AnalysisOptionsImpl) { |
| 299 this._options.strongModeHints = options.strongModeHints; | 300 this._options.strongModeHints = options.strongModeHints; |
| 300 } | 301 } |
| (...skipping 1878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2179 } | 2180 } |
| 2180 DartSdk sdk = factory.dartSdk; | 2181 DartSdk sdk = factory.dartSdk; |
| 2181 if (sdk == null) { | 2182 if (sdk == null) { |
| 2182 throw new IllegalArgumentException( | 2183 throw new IllegalArgumentException( |
| 2183 "The source factory for an SDK analysis context must have a DartUriRes
olver"); | 2184 "The source factory for an SDK analysis context must have a DartUriRes
olver"); |
| 2184 } | 2185 } |
| 2185 return new AnalysisCache( | 2186 return new AnalysisCache( |
| 2186 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); | 2187 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); |
| 2187 } | 2188 } |
| 2188 } | 2189 } |
| OLD | NEW |