| 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/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/dart/ast/token.dart'; | 10 import 'package:analyzer/dart/ast/token.dart'; |
| (...skipping 5700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5711 * given [target]. | 5711 * given [target]. |
| 5712 */ | 5712 */ |
| 5713 static Map<String, TaskInput> buildInputs(AnalysisTarget target) { | 5713 static Map<String, TaskInput> buildInputs(AnalysisTarget target) { |
| 5714 // TODO(brianwilkerson) This task updates the element model to have type | 5714 // TODO(brianwilkerson) This task updates the element model to have type |
| 5715 // information and updates the class hierarchy. It should produce a new | 5715 // information and updates the class hierarchy. It should produce a new |
| 5716 // version of the element model in order to record those changes. | 5716 // version of the element model in order to record those changes. |
| 5717 LibrarySpecificUnit unit = target; | 5717 LibrarySpecificUnit unit = target; |
| 5718 return <String, TaskInput>{ | 5718 return <String, TaskInput>{ |
| 5719 'importsExportNamespace': | 5719 'importsExportNamespace': |
| 5720 IMPORTED_LIBRARIES.of(unit.library).toMapOf(LIBRARY_ELEMENT4), | 5720 IMPORTED_LIBRARIES.of(unit.library).toMapOf(LIBRARY_ELEMENT4), |
| 5721 'dependOnAllExportedSources': |
| 5722 IMPORTED_LIBRARIES.of(unit.library).toMapOf(EXPORT_SOURCE_CLOSURE), |
| 5721 LIBRARY_INPUT: LIBRARY_ELEMENT4.of(unit.library), | 5723 LIBRARY_INPUT: LIBRARY_ELEMENT4.of(unit.library), |
| 5722 UNIT_INPUT: RESOLVED_UNIT3.of(unit), | 5724 UNIT_INPUT: RESOLVED_UNIT3.of(unit), |
| 5723 TYPE_PROVIDER_INPUT: TYPE_PROVIDER.of(AnalysisContextTarget.request) | 5725 TYPE_PROVIDER_INPUT: TYPE_PROVIDER.of(AnalysisContextTarget.request) |
| 5724 }; | 5726 }; |
| 5725 } | 5727 } |
| 5726 | 5728 |
| 5727 /** | 5729 /** |
| 5728 * Create a [ResolveTopLevelUnitTypeBoundsTask] based on the given [target] in | 5730 * Create a [ResolveTopLevelUnitTypeBoundsTask] based on the given [target] in |
| 5729 * the given [context]. | 5731 * the given [context]. |
| 5730 */ | 5732 */ |
| (...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6522 | 6524 |
| 6523 @override | 6525 @override |
| 6524 bool moveNext() { | 6526 bool moveNext() { |
| 6525 if (_newSources.isEmpty) { | 6527 if (_newSources.isEmpty) { |
| 6526 return false; | 6528 return false; |
| 6527 } | 6529 } |
| 6528 currentTarget = _newSources.removeLast(); | 6530 currentTarget = _newSources.removeLast(); |
| 6529 return true; | 6531 return true; |
| 6530 } | 6532 } |
| 6531 } | 6533 } |
| OLD | NEW |