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

Side by Side Diff: pkg/analyzer/lib/src/task/driver.dart

Issue 1673433002: Fix error plumbing in WorkItem (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | no next file » | 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.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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698