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

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

Issue 2933753002: Run the sorter to reduce code churn (Closed)
Patch Set: Created 3 years, 6 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/exception/exception.dart'; 10 import 'package:analyzer/exception/exception.dart';
11 import 'package:analyzer/src/context/cache.dart'; 11 import 'package:analyzer/src/context/cache.dart';
12 import 'package:analyzer/src/generated/engine.dart'; 12 import 'package:analyzer/src/generated/engine.dart';
13 import 'package:analyzer/src/generated/resolver.dart'; 13 import 'package:analyzer/src/generated/resolver.dart';
14 import 'package:analyzer/src/generated/utilities_general.dart'; 14 import 'package:analyzer/src/generated/utilities_general.dart';
15 import 'package:analyzer/src/task/inputs.dart'; 15 import 'package:analyzer/src/task/inputs.dart';
16 import 'package:analyzer/src/task/manager.dart'; 16 import 'package:analyzer/src/task/manager.dart';
17 import 'package:analyzer/task/model.dart'; 17 import 'package:analyzer/task/model.dart';
18 18
19 final PerformanceTag _taskDriverTag =
20 PerformanceStatistics.analyzer.createChild('taskDriver');
21
22 final PerformanceTag analysisDriverProcessOutputs = 19 final PerformanceTag analysisDriverProcessOutputs =
23 _taskDriverTag.createChild('processOutputs'); 20 _taskDriverTag.createChild('processOutputs');
24 21
25 final PerformanceTag workOrderMoveNextPerformanceTag = 22 final PerformanceTag workOrderMoveNextPerformanceTag =
26 _taskDriverTag.createChild('workOrderMoveNext'); 23 _taskDriverTag.createChild('workOrderMoveNext');
27 24
25 final PerformanceTag _taskDriverTag =
26 PerformanceStatistics.analyzer.createChild('taskDriver');
27
28 /** 28 /**
29 * An object that is used to cause analysis to be performed until all of the 29 * An object that is used to cause analysis to be performed until all of the
30 * required analysis information has been computed. 30 * required analysis information has been computed.
31 */ 31 */
32 class AnalysisDriver { 32 class AnalysisDriver {
33 /** 33 /**
34 * The task manager used to figure out how to compute analysis results. 34 * The task manager used to figure out how to compute analysis results.
35 */ 35 */
36 final TaskManager taskManager; 36 final TaskManager taskManager;
37 37
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 final TaskManager taskManager; 875 final TaskManager taskManager;
876 876
877 _WorkOrderDependencyWalker(this.taskManager, WorkItem startingNode) 877 _WorkOrderDependencyWalker(this.taskManager, WorkItem startingNode)
878 : super(startingNode); 878 : super(startingNode);
879 879
880 @override 880 @override
881 WorkItem getNextInput(WorkItem node, List<WorkItem> skipInputs) { 881 WorkItem getNextInput(WorkItem node, List<WorkItem> skipInputs) {
882 return node.gatherInputs(taskManager, skipInputs); 882 return node.gatherInputs(taskManager, skipInputs);
883 } 883 }
884 } 884 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | pkg/analyzer/lib/src/task/strong/ast_properties.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698