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 pub.solver.unselected_package_queue; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 import 'dart:collection'; | 6 import 'dart:collection'; |
9 | 7 |
10 import 'package:stack_trace/stack_trace.dart'; | 8 import 'package:stack_trace/stack_trace.dart'; |
11 | 9 |
12 import '../log.dart' as log; | 10 import '../log.dart' as log; |
13 import '../package.dart'; | 11 import '../package.dart'; |
14 import 'backtracking_solver.dart'; | 12 import 'backtracking_solver.dart'; |
15 | 13 |
16 /// A priority queue of package references. | 14 /// A priority queue of package references. |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 .length; | 138 .length; |
141 } | 139 } |
142 | 140 |
143 // TODO(nweiz): Also ignore versions with non-matching SDK constraints or | 141 // TODO(nweiz): Also ignore versions with non-matching SDK constraints or |
144 // dependencies that are incompatible with the root package's. | 142 // dependencies that are incompatible with the root package's. |
145 return versions.length; | 143 return versions.length; |
146 } | 144 } |
147 | 145 |
148 String toString() => _set.toString(); | 146 String toString() => _set.toString(); |
149 } | 147 } |
OLD | NEW |