| 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.task.driver; | 5 library analyzer.src.task.driver; |
| 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/context/cache.dart'; | 10 import 'package:analyzer/src/context/cache.dart'; |
| (...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 if (descriptor == null) { | 715 if (descriptor == null) { |
| 716 throw new AnalysisException( | 716 throw new AnalysisException( |
| 717 'Cannot find task to build $inputResult for $inputTarget'); | 717 'Cannot find task to build $inputResult for $inputTarget'); |
| 718 } | 718 } |
| 719 return new WorkItem(context, inputTarget, descriptor, inputResult, | 719 return new WorkItem(context, inputTarget, descriptor, inputResult, |
| 720 level + 1, workOrder); | 720 level + 1, workOrder); |
| 721 } on AnalysisException catch (exception, stackTrace) { | 721 } on AnalysisException catch (exception, stackTrace) { |
| 722 this.exception = new CaughtException(exception, stackTrace); | 722 this.exception = new CaughtException(exception, stackTrace); |
| 723 return null; | 723 return null; |
| 724 } catch (exception, stackTrace) { | 724 } catch (exception, stackTrace) { |
| 725 this.exception = new CaughtException( | 725 this.exception = new CaughtException(exception, stackTrace); |
| 726 throw new AnalysisException( | 726 throw new AnalysisException( |
| 727 'Cannot create work order to build $inputResult for $inputTa
rget', | 727 'Cannot create work order to build $inputResult for $inputTarget
', |
| 728 exception), | 728 this.exception); |
| 729 stackTrace); | |
| 730 return null; | 729 return null; |
| 731 } | 730 } |
| 732 } | 731 } |
| 733 } else { | 732 } else { |
| 734 builder.currentValue = inputEntry.getValue(inputResult); | 733 builder.currentValue = inputEntry.getValue(inputResult); |
| 735 if (builder.flushOnAccess) { | 734 if (builder.flushOnAccess) { |
| 736 inputEntry.setState(inputResult, CacheState.FLUSHED); | 735 inputEntry.setState(inputResult, CacheState.FLUSHED); |
| 737 } | 736 } |
| 738 } | 737 } |
| 739 if (!builder.moveNext()) { | 738 if (!builder.moveNext()) { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 828 final TaskManager taskManager; | 827 final TaskManager taskManager; |
| 829 | 828 |
| 830 _WorkOrderDependencyWalker(this.taskManager, WorkItem startingNode) | 829 _WorkOrderDependencyWalker(this.taskManager, WorkItem startingNode) |
| 831 : super(startingNode); | 830 : super(startingNode); |
| 832 | 831 |
| 833 @override | 832 @override |
| 834 WorkItem getNextInput(WorkItem node, List<WorkItem> skipInputs) { | 833 WorkItem getNextInput(WorkItem node, List<WorkItem> skipInputs) { |
| 835 return node.gatherInputs(taskManager, skipInputs); | 834 return node.gatherInputs(taskManager, skipInputs); |
| 836 } | 835 } |
| 837 } | 836 } |
| OLD | NEW |