OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 /// Generic utility functions. Stuff that should possibly be in core. | 5 /// Generic utility functions. Stuff that should possibly be in core. |
6 library utils; | 6 library utils; |
7 | 7 |
8 import 'dart:async'; | 8 import 'dart:async'; |
9 import 'dart:crypto'; | |
10 import 'dart:io'; | 9 import 'dart:io'; |
11 import 'dart:isolate'; | 10 import 'dart:isolate'; |
12 import 'dart:json' as json; | 11 import 'dart:json' as json; |
13 import 'dart:mirrors'; | 12 import 'dart:mirrors'; |
14 | 13 |
| 14 import "package:crypto/crypto.dart"; |
15 import 'package:pathos/path.dart' as path; | 15 import 'package:pathos/path.dart' as path; |
16 | 16 |
17 /// A pair of values. | 17 /// A pair of values. |
18 class Pair<E, F> { | 18 class Pair<E, F> { |
19 E first; | 19 E first; |
20 F last; | 20 F last; |
21 | 21 |
22 Pair(this.first, this.last); | 22 Pair(this.first, this.last); |
23 | 23 |
24 String toString() => '($first, $last)'; | 24 String toString() => '($first, $last)'; |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 error is FileIOException || | 538 error is FileIOException || |
539 error is HttpException || | 539 error is HttpException || |
540 error is HttpParserException || | 540 error is HttpParserException || |
541 error is LinkIOException || | 541 error is LinkIOException || |
542 error is MimeMultipartException || | 542 error is MimeMultipartException || |
543 error is OSError || | 543 error is OSError || |
544 error is ProcessException || | 544 error is ProcessException || |
545 error is SocketIOException || | 545 error is SocketIOException || |
546 error is WebSocketException; | 546 error is WebSocketException; |
547 } | 547 } |
OLD | NEW |