| 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.dart; | 5 library analyzer.src.task.dart; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/src/generated/ast.dart'; | 9 import 'package:analyzer/src/generated/ast.dart'; |
| 10 import 'package:analyzer/src/generated/element.dart'; | 10 import 'package:analyzer/src/generated/element.dart'; |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 | 315 |
| 316 /** | 316 /** |
| 317 * Return a map from the names of the inputs of this kind of task to the task | 317 * Return a map from the names of the inputs of this kind of task to the task |
| 318 * input descriptors describing those inputs for a task with the given | 318 * input descriptors describing those inputs for a task with the given |
| 319 * [target]. | 319 * [target]. |
| 320 */ | 320 */ |
| 321 static Map<String, TaskInput> buildInputs(AnalysisTarget target) { | 321 static Map<String, TaskInput> buildInputs(AnalysisTarget target) { |
| 322 return <String, TaskInput>{ | 322 return <String, TaskInput>{ |
| 323 DEFINING_BUILT_UNIT_INPUT_NAME: new SimpleTaskInput(target, BUILT_UNIT), | 323 DEFINING_BUILT_UNIT_INPUT_NAME: new SimpleTaskInput(target, BUILT_UNIT), |
| 324 PART_BUILT_UNITS_INPUT_NAME: | 324 PART_BUILT_UNITS_INPUT_NAME: |
| 325 new ListBasedTaskInput<List<Source>, CompilationUnit>( | 325 new ListBasedTaskInput<Source, CompilationUnit>( |
| 326 new SimpleTaskInput<List<Source>>(target, INCLUDED_PARTS), | 326 new SimpleTaskInput<List<Source>>(target, INCLUDED_PARTS), |
| 327 (Source includedSource) => new SimpleTaskInput<CompilationUnit>( | 327 (Source includedSource) => new SimpleTaskInput<CompilationUnit>( |
| 328 includedSource, BUILT_UNIT)) | 328 includedSource, BUILT_UNIT)) |
| 329 }; | 329 }; |
| 330 } | 330 } |
| 331 | 331 |
| 332 /** | 332 /** |
| 333 * Create a [BuildLibraryElementTask] based on the given [target] in the | 333 * Create a [BuildLibraryElementTask] based on the given [target] in the |
| 334 * given [context]. | 334 * given [context]. |
| 335 */ | 335 */ |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 } | 602 } |
| 603 | 603 |
| 604 /** | 604 /** |
| 605 * Create a [ScanDartTask] based on the given [target] in the given [context]. | 605 * Create a [ScanDartTask] based on the given [target] in the given [context]. |
| 606 */ | 606 */ |
| 607 static ScanDartTask createTask( | 607 static ScanDartTask createTask( |
| 608 AnalysisContext context, AnalysisTarget target) { | 608 AnalysisContext context, AnalysisTarget target) { |
| 609 return new ScanDartTask(context, target); | 609 return new ScanDartTask(context, target); |
| 610 } | 610 } |
| 611 } | 611 } |
| OLD | NEW |