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

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

Issue 1136543006: Prioritize scheduling analysis for priority sources. (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/task/dart_work_manager.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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 } else { 253 } else {
254 while (sources.remove(null)) { 254 while (sources.remove(null)) {
255 // Nothing else to do. 255 // Nothing else to do.
256 } 256 }
257 if (sources.isEmpty) { 257 if (sources.isEmpty) {
258 _priorityOrder = Source.EMPTY_LIST; 258 _priorityOrder = Source.EMPTY_LIST;
259 } else { 259 } else {
260 _priorityOrder = sources; 260 _priorityOrder = sources;
261 } 261 }
262 } 262 }
263 dartWorkManager.applyPriorityTargets(_priorityOrder);
263 } 264 }
264 265
265 @override 266 @override
266 set contentCache(ContentCache value) { 267 set contentCache(ContentCache value) {
267 _contentCache = value; 268 _contentCache = value;
268 } 269 }
269 270
270 @override 271 @override
271 DeclaredVariables get declaredVariables => _declaredVariables; 272 DeclaredVariables get declaredVariables => _declaredVariables;
272 273
(...skipping 1758 matching lines...) Expand 10 before | Expand all | Expand 10 after
2031 PendingFuture pendingFuture = 2032 PendingFuture pendingFuture =
2032 new PendingFuture<T>(_context, target, computeValue); 2033 new PendingFuture<T>(_context, target, computeValue);
2033 if (!pendingFuture.evaluate(entry)) { 2034 if (!pendingFuture.evaluate(entry)) {
2034 _context._pendingFutureTargets 2035 _context._pendingFutureTargets
2035 .putIfAbsent(target, () => <PendingFuture>[]) 2036 .putIfAbsent(target, () => <PendingFuture>[])
2036 .add(pendingFuture); 2037 .add(pendingFuture);
2037 } 2038 }
2038 return pendingFuture.future; 2039 return pendingFuture.future;
2039 } 2040 }
2040 } 2041 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/dart_work_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698