OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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.generated.utilities_collection; | 5 library analyzer.src.generated.utilities_collection; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 import "dart:math" as math; | 8 import "dart:math" as math; |
9 | 9 |
| 10 import 'package:analyzer/dart/ast/token.dart'; |
10 import 'package:analyzer/src/generated/java_core.dart'; | 11 import 'package:analyzer/src/generated/java_core.dart'; |
11 import 'package:analyzer/src/generated/scanner.dart' show Token; | |
12 | 12 |
13 /** | 13 /** |
14 * Returns `true` if a and b contain equal elements in the same order. | 14 * Returns `true` if a and b contain equal elements in the same order. |
15 */ | 15 */ |
16 bool listsEqual(List a, List b) { | 16 bool listsEqual(List a, List b) { |
17 // TODO(rnystrom): package:collection also implements this, and analyzer | 17 // TODO(rnystrom): package:collection also implements this, and analyzer |
18 // already transitively depends on that package. Consider using it instead. | 18 // already transitively depends on that package. Consider using it instead. |
19 if (identical(a, b)) { | 19 if (identical(a, b)) { |
20 return true; | 20 return true; |
21 } | 21 } |
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 /** | 738 /** |
739 * Map the key to the value. | 739 * Map the key to the value. |
740 * | 740 * |
741 * @param key the token being mapped to the value | 741 * @param key the token being mapped to the value |
742 * @param value the token to which the key will be mapped | 742 * @param value the token to which the key will be mapped |
743 */ | 743 */ |
744 void put(Token key, Token value) { | 744 void put(Token key, Token value) { |
745 _map[key] = value; | 745 _map[key] = value; |
746 } | 746 } |
747 } | 747 } |
OLD | NEW |