| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 * client has not provided a name. | 73 * client has not provided a name. |
| 74 */ | 74 */ |
| 75 @override | 75 @override |
| 76 String name; | 76 String name; |
| 77 | 77 |
| 78 /** | 78 /** |
| 79 * The set of analysis options controlling the behavior of this context. | 79 * The set of analysis options controlling the behavior of this context. |
| 80 */ | 80 */ |
| 81 AnalysisOptionsImpl _options = new AnalysisOptionsImpl(); | 81 AnalysisOptionsImpl _options = new AnalysisOptionsImpl(); |
| 82 | 82 |
| 83 /// The embedder yaml locator for this context. | 83 /** |
| 84 * The embedder yaml locator for this context. |
| 85 */ |
| 86 @deprecated |
| 84 EmbedderYamlLocator _embedderYamlLocator = new EmbedderYamlLocator(null); | 87 EmbedderYamlLocator _embedderYamlLocator = new EmbedderYamlLocator(null); |
| 85 | 88 |
| 86 /** | 89 /** |
| 87 * A flag indicating whether this context is disposed. | 90 * A flag indicating whether this context is disposed. |
| 88 */ | 91 */ |
| 89 bool _disposed = false; | 92 bool _disposed = false; |
| 90 | 93 |
| 91 /** | 94 /** |
| 92 * A cache of content used to override the default content of a source. | 95 * A cache of content used to override the default content of a source. |
| 93 */ | 96 */ |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 } | 337 } |
| 335 | 338 |
| 336 @override | 339 @override |
| 337 set contentCache(ContentCache value) { | 340 set contentCache(ContentCache value) { |
| 338 _contentCache = value; | 341 _contentCache = value; |
| 339 } | 342 } |
| 340 | 343 |
| 341 @override | 344 @override |
| 342 DeclaredVariables get declaredVariables => _declaredVariables; | 345 DeclaredVariables get declaredVariables => _declaredVariables; |
| 343 | 346 |
| 347 @deprecated |
| 344 @override | 348 @override |
| 345 EmbedderYamlLocator get embedderYamlLocator => _embedderYamlLocator; | 349 EmbedderYamlLocator get embedderYamlLocator => _embedderYamlLocator; |
| 346 | 350 |
| 347 @override | 351 @override |
| 348 List<AnalysisTarget> get explicitTargets { | 352 List<AnalysisTarget> get explicitTargets { |
| 349 List<AnalysisTarget> targets = <AnalysisTarget>[]; | 353 List<AnalysisTarget> targets = <AnalysisTarget>[]; |
| 350 MapIterator<AnalysisTarget, CacheEntry> iterator = _cache.iterator(); | 354 MapIterator<AnalysisTarget, CacheEntry> iterator = _cache.iterator(); |
| 351 while (iterator.moveNext()) { | 355 while (iterator.moveNext()) { |
| 352 if (iterator.value.explicitlyAdded) { | 356 if (iterator.value.explicitlyAdded) { |
| 353 targets.add(iterator.key); | 357 targets.add(iterator.key); |
| (...skipping 1874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2228 } | 2232 } |
| 2229 DartSdk sdk = factory.dartSdk; | 2233 DartSdk sdk = factory.dartSdk; |
| 2230 if (sdk == null) { | 2234 if (sdk == null) { |
| 2231 throw new IllegalArgumentException( | 2235 throw new IllegalArgumentException( |
| 2232 "The source factory for an SDK analysis context must have a DartUriRes
olver"); | 2236 "The source factory for an SDK analysis context must have a DartUriRes
olver"); |
| 2233 } | 2237 } |
| 2234 return new AnalysisCache( | 2238 return new AnalysisCache( |
| 2235 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); | 2239 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); |
| 2236 } | 2240 } |
| 2237 } | 2241 } |
| OLD | NEW |