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

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

Issue 2151373002: Share LibrarySpecificUnits when possible (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Clean-up Created 4 years, 5 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
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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/task/dart_work_manager.dart ('k') | pkg/analyzer/lib/src/task/html_work_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698