| Index: utils/pub/utils.dart
|
| diff --git a/utils/pub/utils.dart b/utils/pub/utils.dart
|
| index d9932b8796ef0e7c15d1ed1bfb57c93e8464426c..cdd989a068f7d4ba6eb4c4c6770ea755e9f66515 100644
|
| --- a/utils/pub/utils.dart
|
| +++ b/utils/pub/utils.dart
|
| @@ -24,6 +24,8 @@ class Pair<E, F> {
|
| if (other is! Pair) return false;
|
| return other.first == first && other.last == last;
|
| }
|
| +
|
| + int get hashCode => first.hashCode ^ last.hashCode;
|
| }
|
|
|
| // TODO(rnystrom): Move into String?
|
| @@ -53,9 +55,10 @@ always(Future future, fn()) {
|
| }
|
|
|
| /**
|
| - * Flattens nested lists into a single list containing only non-list elements.
|
| + * Flattens nested collections into a single list containing only non-list
|
| + * elements.
|
| */
|
| -List flatten(List nested) {
|
| +List flatten(Collection nested) {
|
| var result = [];
|
| helper(list) {
|
| for (var element in list) {
|
|
|