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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 } | 716 } |
717 throw new AnalysisException(message); | 717 throw new AnalysisException(message); |
718 } catch (exception, stackTrace) { | 718 } catch (exception, stackTrace) { |
719 this.exception = new CaughtException(exception, stackTrace); | 719 this.exception = new CaughtException(exception, stackTrace); |
720 AnalysisEngine.instance.logger | 720 AnalysisEngine.instance.logger |
721 .logError('Task failed: $this', this.exception); | 721 .logError('Task failed: $this', this.exception); |
722 } | 722 } |
723 return null; | 723 return null; |
724 } | 724 } |
725 | 725 |
| 726 inputTarget = context.canonicalizeTarget(inputTarget); |
726 inputTargetedResults.add(new TargetedResult(inputTarget, inputResult)); | 727 inputTargetedResults.add(new TargetedResult(inputTarget, inputResult)); |
727 CacheEntry inputEntry = context.getCacheEntry(inputTarget); | 728 CacheEntry inputEntry = context.getCacheEntry(inputTarget); |
728 CacheState inputState = inputEntry.getState(inputResult); | 729 CacheState inputState = inputEntry.getState(inputResult); |
729 if (inputState == CacheState.ERROR) { | 730 if (inputState == CacheState.ERROR) { |
730 exception = inputEntry.exception; | 731 exception = inputEntry.exception; |
731 return null; | 732 return null; |
732 } else if (inputState == CacheState.IN_PROCESS) { | 733 } else if (inputState == CacheState.IN_PROCESS) { |
733 // | 734 // |
734 // TODO(brianwilkerson) Implement this case. | 735 // TODO(brianwilkerson) Implement this case. |
735 // | 736 // |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
872 final TaskManager taskManager; | 873 final TaskManager taskManager; |
873 | 874 |
874 _WorkOrderDependencyWalker(this.taskManager, WorkItem startingNode) | 875 _WorkOrderDependencyWalker(this.taskManager, WorkItem startingNode) |
875 : super(startingNode); | 876 : super(startingNode); |
876 | 877 |
877 @override | 878 @override |
878 WorkItem getNextInput(WorkItem node, List<WorkItem> skipInputs) { | 879 WorkItem getNextInput(WorkItem node, List<WorkItem> skipInputs) { |
879 return node.gatherInputs(taskManager, skipInputs); | 880 return node.gatherInputs(taskManager, skipInputs); |
880 } | 881 } |
881 } | 882 } |
OLD | NEW |