| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |