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

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

Issue 1350993002: Reset AnalysisDriver on priority sources changes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | pkg/analyzer/lib/task/model.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/instrumentation/instrumentation.dart'; 10 import 'package:analyzer/instrumentation/instrumentation.dart';
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 } 296 }
297 if (sources.isEmpty) { 297 if (sources.isEmpty) {
298 _priorityOrder = Source.EMPTY_LIST; 298 _priorityOrder = Source.EMPTY_LIST;
299 } else { 299 } else {
300 _priorityOrder = sources; 300 _priorityOrder = sources;
301 } 301 }
302 } 302 }
303 for (WorkManager workManager in workManagers) { 303 for (WorkManager workManager in workManagers) {
304 workManager.applyPriorityTargets(_priorityOrder); 304 workManager.applyPriorityTargets(_priorityOrder);
305 } 305 }
306 driver.reset();
306 } 307 }
307 308
308 @override 309 @override
309 set contentCache(ContentCache value) { 310 set contentCache(ContentCache value) {
310 _contentCache = value; 311 _contentCache = value;
311 } 312 }
312 313
313 @override 314 @override
314 DeclaredVariables get declaredVariables => _declaredVariables; 315 DeclaredVariables get declaredVariables => _declaredVariables;
315 316
(...skipping 1793 matching lines...) Expand 10 before | Expand all | Expand 10 after
2109 new PendingFuture<T>(_context, target, computeValue); 2110 new PendingFuture<T>(_context, target, computeValue);
2110 if (!pendingFuture.evaluate(entry)) { 2111 if (!pendingFuture.evaluate(entry)) {
2111 _context._pendingFutureTargets 2112 _context._pendingFutureTargets
2112 .putIfAbsent(target, () => <PendingFuture>[]) 2113 .putIfAbsent(target, () => <PendingFuture>[])
2113 .add(pendingFuture); 2114 .add(pendingFuture);
2114 scheduleComputation(); 2115 scheduleComputation();
2115 } 2116 }
2116 return pendingFuture.future; 2117 return pendingFuture.future;
2117 } 2118 }
2118 } 2119 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/task/model.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698