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

Unified Diff: sdk/lib/async/zone.dart

Issue 1606543005: Update Stream.listen doc and use ?? in some places. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Address comment Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/async/stream.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/async/zone.dart
diff --git a/sdk/lib/async/zone.dart b/sdk/lib/async/zone.dart
index d84f01bc834586880746e77e77a2727447c55970..5cc4d88ef71082771c22389db2fb77be48485faa 100644
--- a/sdk/lib/async/zone.dart
+++ b/sdk/lib/async/zone.dart
@@ -135,33 +135,21 @@ abstract class ZoneSpecification {
Map zoneValues): null
}) {
return new ZoneSpecification(
- handleUncaughtError: handleUncaughtError != null
- ? handleUncaughtError
- : other.handleUncaughtError,
- run: run != null ? run : other.run,
- runUnary: runUnary != null ? runUnary : other.runUnary,
- runBinary: runBinary != null ? runBinary : other.runBinary,
- registerCallback: registerCallback != null
- ? registerCallback
- : other.registerCallback,
- registerUnaryCallback: registerUnaryCallback != null
- ? registerUnaryCallback
- : other.registerUnaryCallback,
- registerBinaryCallback: registerBinaryCallback != null
- ? registerBinaryCallback
- : other.registerBinaryCallback,
- errorCallback: errorCallback != null
- ? errorCallback
- : other.errorCallback,
- scheduleMicrotask: scheduleMicrotask != null
- ? scheduleMicrotask
- : other.scheduleMicrotask,
- createTimer : createTimer != null ? createTimer : other.createTimer,
- createPeriodicTimer: createPeriodicTimer != null
- ? createPeriodicTimer
- : other.createPeriodicTimer,
- print : print != null ? print : other.print,
- fork: fork != null ? fork : other.fork);
+ handleUncaughtError: handleUncaughtError ?? other.handleUncaughtError,
+ run: run ?? other.run,
+ runUnary: runUnary ?? other.runUnary,
+ runBinary: runBinary ?? other.runBinary,
+ registerCallback: registerCallback ?? other.registerCallback,
+ registerUnaryCallback: registerUnaryCallback ??
+ other.registerUnaryCallback,
+ registerBinaryCallback: registerBinaryCallback ??
+ other.registerBinaryCallback,
+ errorCallback: errorCallback ?? other.errorCallback,
+ scheduleMicrotask: scheduleMicrotask ?? other.scheduleMicrotask,
+ createTimer : createTimer ?? other.createTimer,
+ createPeriodicTimer: createPeriodicTimer ?? other.createPeriodicTimer,
+ print : print ?? other.print,
+ fork: fork ?? other.fork);
}
HandleUncaughtErrorHandler get handleUncaughtError;
« no previous file with comments | « sdk/lib/async/stream.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698