| 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/standard_resolution_map.dart'; | 10 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; |
| (...skipping 5665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5676 // | 5676 // |
| 5677 LibraryElement library = getRequiredInput(LIBRARY_INPUT); | 5677 LibraryElement library = getRequiredInput(LIBRARY_INPUT); |
| 5678 CompilationUnit unit = getRequiredInput(UNIT_INPUT); | 5678 CompilationUnit unit = getRequiredInput(UNIT_INPUT); |
| 5679 CompilationUnitElement unitElement = unit.element; | 5679 CompilationUnitElement unitElement = unit.element; |
| 5680 TypeProvider typeProvider = getRequiredInput(TYPE_PROVIDER_INPUT); | 5680 TypeProvider typeProvider = getRequiredInput(TYPE_PROVIDER_INPUT); |
| 5681 // | 5681 // |
| 5682 // Resolve TypeName nodes. | 5682 // Resolve TypeName nodes. |
| 5683 // | 5683 // |
| 5684 RecordingErrorListener errorListener = new RecordingErrorListener(); | 5684 RecordingErrorListener errorListener = new RecordingErrorListener(); |
| 5685 new TypeParameterBoundsResolver( | 5685 new TypeParameterBoundsResolver( |
| 5686 typeProvider, library, unitElement.source, errorListener) | 5686 context.typeSystem, library, unitElement.source, errorListener) |
| 5687 .resolveTypeBounds(unit); | 5687 .resolveTypeBounds(unit); |
| 5688 // | 5688 // |
| 5689 // Record outputs. | 5689 // Record outputs. |
| 5690 // | 5690 // |
| 5691 outputs[RESOLVE_TYPE_BOUNDS_ERRORS] = | 5691 outputs[RESOLVE_TYPE_BOUNDS_ERRORS] = |
| 5692 getTargetSourceErrors(errorListener, target); | 5692 getTargetSourceErrors(errorListener, target); |
| 5693 outputs[RESOLVED_UNIT4] = unit; | 5693 outputs[RESOLVED_UNIT4] = unit; |
| 5694 outputs[CREATED_RESOLVED_UNIT4] = true; | 5694 outputs[CREATED_RESOLVED_UNIT4] = true; |
| 5695 } | 5695 } |
| 5696 | 5696 |
| (...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6587 | 6587 |
| 6588 @override | 6588 @override |
| 6589 bool moveNext() { | 6589 bool moveNext() { |
| 6590 if (_newSources.isEmpty) { | 6590 if (_newSources.isEmpty) { |
| 6591 return false; | 6591 return false; |
| 6592 } | 6592 } |
| 6593 currentTarget = _newSources.removeLast(); | 6593 currentTarget = _newSources.removeLast(); |
| 6594 return true; | 6594 return true; |
| 6595 } | 6595 } |
| 6596 } | 6596 } |
| OLD | NEW |