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

Side by Side Diff: sdk/lib/async/future.dart

Issue 2968413002: Revert "Use relative URIs for core library part-of statements." (Closed)
Patch Set: Created 3 years, 5 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
« no previous file with comments | « sdk/lib/async/deferred_load.dart ('k') | sdk/lib/async/future_impl.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 part of "async.dart"; 5 part of dart.async;
6 6
7 /// A type representing values that are either `Future<T>` or `T`. 7 /// A type representing values that are either `Future<T>` or `T`.
8 /// 8 ///
9 /// This class declaration is a public stand-in for an internal 9 /// This class declaration is a public stand-in for an internal
10 /// future-or-value generic type. References to this class are resolved to the 10 /// future-or-value generic type. References to this class are resolved to the
11 /// internal type. 11 /// internal type.
12 /// 12 ///
13 /// It is a compile-time error for any class to extend, mix in or implement 13 /// It is a compile-time error for any class to extend, mix in or implement
14 /// `FutureOr`. 14 /// `FutureOr`.
15 /// 15 ///
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 AsyncError replacement = Zone.current.errorCallback(error, stackTrace); 909 AsyncError replacement = Zone.current.errorCallback(error, stackTrace);
910 if (replacement != null) { 910 if (replacement != null) {
911 error = _nonNullError(replacement.error); 911 error = _nonNullError(replacement.error);
912 stackTrace = replacement.stackTrace; 912 stackTrace = replacement.stackTrace;
913 } 913 }
914 result._asyncCompleteError(error, stackTrace); 914 result._asyncCompleteError(error, stackTrace);
915 } 915 }
916 916
917 /** Helper function that converts `null` to a [NullThrownError]. */ 917 /** Helper function that converts `null` to a [NullThrownError]. */
918 Object _nonNullError(Object error) => error ?? new NullThrownError(); 918 Object _nonNullError(Object error) => error ?? new NullThrownError();
OLDNEW
« no previous file with comments | « sdk/lib/async/deferred_load.dart ('k') | sdk/lib/async/future_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698