| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 dart2js.util; | 5 library dart2js.util; |
| 6 | 6 |
| 7 import "dart:collection"; | 7 import "dart:collection"; |
| 8 import 'util_implementation.dart'; | 8 import 'util_implementation.dart'; |
| 9 import 'characters.dart'; | 9 import 'characters.dart'; |
| 10 | 10 |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 buffer.write(string); | 289 buffer.write(string); |
| 290 } | 290 } |
| 291 | 291 |
| 292 int computeHashCode(part1, [part2, part3, part4, part5]) { | 292 int computeHashCode(part1, [part2, part3, part4, part5]) { |
| 293 return (part1.hashCode | 293 return (part1.hashCode |
| 294 ^ part2.hashCode | 294 ^ part2.hashCode |
| 295 ^ part3.hashCode | 295 ^ part3.hashCode |
| 296 ^ part4.hashCode | 296 ^ part4.hashCode |
| 297 ^ part5.hashCode) & 0x3fffffff; | 297 ^ part5.hashCode) & 0x3fffffff; |
| 298 } | 298 } |
| 299 |
| 300 class Pair<S, T> { |
| 301 final S first; |
| 302 final T second; |
| 303 Pair(this.first, this.second); |
| 304 } |
| OLD | NEW |