Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: sdk/lib/_internal/compiler/implementation/util/util.dart

Issue 177543002: Constrain type annotations with deferred types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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> {
floitsch 2014/03/03 14:18:06 Still needed?
sigurdm 2014/03/04 12:36:19 No.
301 final S first;
302 final T second;
303 Pair(this.first, this.second);
304 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698