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

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

Issue 1113423003: Remove AnalysisContext.refactoringUnsafeSources. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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/src/cancelable_future.dart'; 10 import 'package:analyzer/src/cancelable_future.dart';
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 HashMap<Source, List<PendingFuture>> get pendingFutureSources_forTesting => 308 HashMap<Source, List<PendingFuture>> get pendingFutureSources_forTesting =>
309 _pendingFutureSources; 309 _pendingFutureSources;
310 310
311 @override 311 @override
312 List<Source> get prioritySources => _priorityOrder; 312 List<Source> get prioritySources => _priorityOrder;
313 313
314 @override 314 @override
315 List<AnalysisTarget> get priorityTargets => prioritySources; 315 List<AnalysisTarget> get priorityTargets => prioritySources;
316 316
317 @override 317 @override
318 List<Source> get refactoringUnsafeSources {
319 // TODO(brianwilkerson) Implement this.
320 List<Source> sources = new List<Source>();
321 // MapIterator<AnalysisTarget, cache.CacheEntry> iterator = _cache.iterator() ;
322 // while (iterator.moveNext()) {
323 // cache.CacheEntry entry = iterator.value;
324 // AnalysisTarget target = iterator.key;
325 // if (target is Source &&
326 // !target.isInSystemLibrary &&
327 // !entry.isRefactoringSafe) {
328 // sources.add(target);
329 // }
330 // }
331 return sources;
332 }
333
334 @override
335 SourceFactory get sourceFactory => _sourceFactory; 318 SourceFactory get sourceFactory => _sourceFactory;
336 319
337 @override 320 @override
338 void set sourceFactory(SourceFactory factory) { 321 void set sourceFactory(SourceFactory factory) {
339 if (identical(_sourceFactory, factory)) { 322 if (identical(_sourceFactory, factory)) {
340 return; 323 return;
341 } else if (factory.context != null) { 324 } else if (factory.context != null) {
342 throw new IllegalStateException( 325 throw new IllegalStateException(
343 "Source factories cannot be shared between contexts"); 326 "Source factories cannot be shared between contexts");
344 } 327 }
(...skipping 1628 matching lines...) Expand 10 before | Expand all | Expand 10 after
1973 // Check cache for an existing partition. 1956 // Check cache for an existing partition.
1974 cache.SdkCachePartition partition = _sdkPartitions[sdk]; 1957 cache.SdkCachePartition partition = _sdkPartitions[sdk];
1975 if (partition == null) { 1958 if (partition == null) {
1976 partition = 1959 partition =
1977 new cache.SdkCachePartition(sdkContext, _DEFAULT_SDK_CACHE_SIZE); 1960 new cache.SdkCachePartition(sdkContext, _DEFAULT_SDK_CACHE_SIZE);
1978 _sdkPartitions[sdk] = partition; 1961 _sdkPartitions[sdk] = partition;
1979 } 1962 }
1980 return partition; 1963 return partition;
1981 } 1964 }
1982 } 1965 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698