| Index: pkg/analyzer/lib/src/generated/utilities_collection.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/utilities_collection.dart b/pkg/analyzer/lib/src/generated/utilities_collection.dart
|
| index 453ee378c3d8be83aeb5a402e5661425375d753a..043fc44a68672b0d4b19807cc8af52af0914f3cc 100644
|
| --- a/pkg/analyzer/lib/src/generated/utilities_collection.dart
|
| +++ b/pkg/analyzer/lib/src/generated/utilities_collection.dart
|
| @@ -11,6 +11,29 @@ import 'package:analyzer/src/generated/java_core.dart';
|
| import 'package:analyzer/src/generated/scanner.dart' show Token;
|
|
|
| /**
|
| + * Returns `true` if a and b contain equal elements in the same order.
|
| + */
|
| +bool listsEqual(List a, List b) {
|
| + // TODO(rnystrom): package:collection also implements this, and analyzer
|
| + // already transitively depends on that package. Consider using it instead.
|
| + if (identical(a, b)) {
|
| + return true;
|
| + }
|
| +
|
| + if (a.length != b.length) {
|
| + return false;
|
| + }
|
| +
|
| + for (int i = 0; i < a.length; i++) {
|
| + if (a[i] != b[i]) {
|
| + return false;
|
| + }
|
| + }
|
| +
|
| + return true;
|
| +}
|
| +
|
| +/**
|
| * The class `BooleanArray` defines methods for operating on integers as if they were arrays
|
| * of booleans. These arrays can be indexed by either integers or by enumeration constants.
|
| */
|
|
|