| 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/instrumentation/instrumentation.dart'; | 10 import 'package:analyzer/instrumentation/instrumentation.dart'; |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |