OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 part of "dart:async"; | 5 part of dart.async; |
6 | 6 |
7 /** | 7 /** |
8 * Indicates that loading of [libraryName] is deferred. | 8 * Indicates that loading of [libraryName] is deferred. |
9 * | 9 * |
10 * This class is obsolete. Instead use the syntax: | 10 * This class is obsolete. Instead use the syntax: |
11 * import "library.dart" deferred as prefix; | 11 * import "library.dart" deferred as prefix; |
12 */ | 12 */ |
13 @Deprecated("Dart sdk v. 1.8") | 13 @Deprecated("Dart sdk v. 1.8") |
14 class DeferredLibrary { | 14 class DeferredLibrary { |
15 final String libraryName; | 15 final String libraryName; |
(...skipping 11 matching lines...) Expand all Loading... |
27 } | 27 } |
28 | 28 |
29 /** | 29 /** |
30 * Thrown when a deferred library fails to load. | 30 * Thrown when a deferred library fails to load. |
31 */ | 31 */ |
32 class DeferredLoadException implements Exception { | 32 class DeferredLoadException implements Exception { |
33 DeferredLoadException(this._s); | 33 DeferredLoadException(this._s); |
34 String toString() => "DeferredLoadException: '$_s'"; | 34 String toString() => "DeferredLoadException: '$_s'"; |
35 final String _s; | 35 final String _s; |
36 } | 36 } |
OLD | NEW |