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

Side by Side Diff: test/generated_sdk/lib/async/deferred_load.dart

Issue 959913003: cleanup patch generation to preseve comments and remove @patch (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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
OLDNEW
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;
16 final String uri; 16 final String uri;
17 17
18 const DeferredLibrary(this.libraryName, {this.uri}); 18 const DeferredLibrary(this.libraryName, {this.uri});
19 19
20 @patch 20 /**
21 * Ensure that [libraryName] has been loaded.
22 *
23 * If the library fails to load, the Future will complete with a
24 * DeferredLoadException.
25 */
21 Future<Null> load() { 26 Future<Null> load() {
22 throw 'DeferredLibrary not supported. ' 27 throw 'DeferredLibrary not supported. '
23 'please use the `import "lib.dart" deferred as lib` syntax.'; 28 'please use the `import "lib.dart" deferred as lib` syntax.';
24 } 29 }
25 } 30 }
26 31
27 /** 32 /**
28 * Thrown when a deferred library fails to load. 33 * Thrown when a deferred library fails to load.
29 */ 34 */
30 class DeferredLoadException implements Exception { 35 class DeferredLoadException implements Exception {
31 DeferredLoadException(String this._s); 36 DeferredLoadException(String this._s);
32 String toString() => "DeferredLoadException: '$_s'"; 37 String toString() => "DeferredLoadException: '$_s'";
33 final String _s; 38 final String _s;
34 } 39 }
OLDNEW
« no previous file with comments | « test/dart_codegen/expect/typed_data/typed_data ('k') | test/generated_sdk/lib/async/schedule_microtask.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698