Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: pkg/analyzer/lib/src/context/context.dart

Issue 2078993002: Remove embedder locator from analysis context (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/source/embedder.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/source/embedder.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698