| Index: pkg/analyzer/lib/src/task/dart.dart
|
| diff --git a/pkg/analyzer/lib/src/task/dart.dart b/pkg/analyzer/lib/src/task/dart.dart
|
| index 03fbb2e7c0d7d1d705f907d6b696f3b40a2658d9..c7c80a314e18b48edf4cc9e484863ac8d8f3dd42 100644
|
| --- a/pkg/analyzer/lib/src/task/dart.dart
|
| +++ b/pkg/analyzer/lib/src/task/dart.dart
|
| @@ -3537,7 +3537,7 @@ enum _SourceClosureKind { IMPORT, EXPORT, IMPORT_EXPORT }
|
| class _SourceClosureTaskInputBuilder implements TaskInputBuilder<List<Source>> {
|
| final _SourceClosureKind kind;
|
| final Set<LibraryElement> _libraries = new HashSet<LibraryElement>();
|
| - final Set<Source> _newSources = new HashSet<Source>();
|
| + final List<Source> _newSources = <Source>[];
|
|
|
| Source currentTarget;
|
|
|
| @@ -3585,8 +3585,7 @@ class _SourceClosureTaskInputBuilder implements TaskInputBuilder<List<Source>> {
|
| if (_newSources.isEmpty) {
|
| return false;
|
| }
|
| - currentTarget = _newSources.first;
|
| - _newSources.remove(currentTarget);
|
| + currentTarget = _newSources.removeLast();
|
| return true;
|
| }
|
| }
|
|
|