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

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

Issue 1131063004: Remove unused InternalAnalysisContext.addSourceInfo(). (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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 } 434 }
435 435
436 @override 436 @override
437 void addListener(AnalysisListener listener) { 437 void addListener(AnalysisListener listener) {
438 if (!_listeners.contains(listener)) { 438 if (!_listeners.contains(listener)) {
439 _listeners.add(listener); 439 _listeners.add(listener);
440 } 440 }
441 } 441 }
442 442
443 @override 443 @override
444 void addSourceInfo(Source source, SourceEntry info) {
445 // TODO(brianwilkerson) This method needs to be replaced by something that
446 // will copy CacheEntry's.
447 // _cache.put(source, info);
448 }
449
450 @override
451 void applyAnalysisDelta(AnalysisDelta delta) { 444 void applyAnalysisDelta(AnalysisDelta delta) {
452 ChangeSet changeSet = new ChangeSet(); 445 ChangeSet changeSet = new ChangeSet();
453 delta.analysisLevels.forEach((Source source, AnalysisLevel level) { 446 delta.analysisLevels.forEach((Source source, AnalysisLevel level) {
454 if (level == AnalysisLevel.NONE) { 447 if (level == AnalysisLevel.NONE) {
455 changeSet.removedSource(source); 448 changeSet.removedSource(source);
456 } else { 449 } else {
457 changeSet.addedSource(source); 450 changeSet.addedSource(source);
458 } 451 }
459 }); 452 });
460 applyChanges(changeSet); 453 applyChanges(changeSet);
(...skipping 1684 matching lines...) Expand 10 before | Expand all | Expand 10 after
2145 PendingFuture pendingFuture = 2138 PendingFuture pendingFuture =
2146 new PendingFuture<T>(_context, target, computeValue); 2139 new PendingFuture<T>(_context, target, computeValue);
2147 if (!pendingFuture.evaluate(entry)) { 2140 if (!pendingFuture.evaluate(entry)) {
2148 _context._pendingFutureTargets 2141 _context._pendingFutureTargets
2149 .putIfAbsent(target, () => <PendingFuture>[]) 2142 .putIfAbsent(target, () => <PendingFuture>[])
2150 .add(pendingFuture); 2143 .add(pendingFuture);
2151 } 2144 }
2152 return pendingFuture.future; 2145 return pendingFuture.future;
2153 } 2146 }
2154 } 2147 }
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