OLD | NEW |
1 dart_library.library('collection/src/utils', null, /* Imports */[ | 1 dart_library.library('collection/src/utils', null, /* Imports */[ |
2 'dart/_runtime', | 2 'dart/_runtime', |
3 'dart/core' | 3 'dart/core' |
4 ], /* Lazy imports */[ | 4 ], /* Lazy imports */[ |
5 ], function(exports, dart, core) { | 5 ], function(exports, dart, core) { |
6 'use strict'; | 6 'use strict'; |
7 let dartx = dart.dartx; | 7 let dartx = dart.dartx; |
8 const Pair$ = dart.generic(function(E, F) { | 8 const Pair$ = dart.generic(function(E, F) { |
9 class Pair extends core.Object { | 9 class Pair extends core.Object { |
10 Pair(first, last) { | 10 Pair(first, last) { |
11 this.first = first; | 11 this.first = first; |
12 this.last = last; | 12 this.last = last; |
13 } | 13 } |
14 } | 14 } |
15 dart.setSignature(Pair, { | 15 dart.setSignature(Pair, { |
16 constructors: () => ({Pair: [Pair$(E, F), [E, F]]}) | 16 constructors: () => ({Pair: [Pair$(E, F), [E, F]]}) |
17 }); | 17 }); |
18 return Pair; | 18 return Pair; |
19 }); | 19 }); |
20 let Pair = Pair$(); | 20 let Pair = Pair$(); |
| 21 function defaultCompare() { |
| 22 return dart.fn((value1, value2) => dart.as(value1, core.Comparable)[dartx.co
mpareTo](value2), core.int, [dart.dynamic, dart.dynamic]); |
| 23 } |
| 24 dart.fn(defaultCompare, () => dart.definiteFunctionType(core.Comparator, [])); |
21 // Exports: | 25 // Exports: |
22 exports.Pair$ = Pair$; | 26 exports.Pair$ = Pair$; |
23 exports.Pair = Pair; | 27 exports.Pair = Pair; |
| 28 exports.defaultCompare = defaultCompare; |
24 }); | 29 }); |
OLD | NEW |