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

Unified Diff: lib/src/dirty_check.dart

Issue 1616953004: Fixed strong mode errors and warnings reachable from lib/observe.dart (Closed) Base URL: https://github.com/dart-lang/observe.git@master
Patch Set: Removed inferrable type param 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 | « lib/src/change_record.dart ('k') | lib/src/list_diff.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/dirty_check.dart
diff --git a/lib/src/dirty_check.dart b/lib/src/dirty_check.dart
index 2084f227163a9d9642b0f5c8e584d21188879c51..68f293867b15b27d6b491db4037e6e007cf36a1d 100644
--- a/lib/src/dirty_check.dart
+++ b/lib/src/dirty_check.dart
@@ -13,6 +13,7 @@
library observe.src.dirty_check;
import 'dart:async';
+import 'package:func/func.dart';
import 'package:logging/logging.dart';
import 'package:observe/observe.dart' show Observable;
@@ -103,7 +104,7 @@ ZoneSpecification dirtyCheckZoneSpec() {
});
}
- wrapCallback(Zone self, ZoneDelegate parent, Zone zone, f()) {
+ Func0 wrapCallback(Zone self, ZoneDelegate parent, Zone zone, f()) {
// TODO(jmesserly): why does this happen?
if (f == null) return f;
return () {
@@ -112,7 +113,7 @@ ZoneSpecification dirtyCheckZoneSpec() {
};
}
- wrapUnaryCallback(Zone self, ZoneDelegate parent, Zone zone, f(x)) {
+ Func1 wrapUnaryCallback(Zone self, ZoneDelegate parent, Zone zone, f(x)) {
// TODO(jmesserly): why does this happen?
if (f == null) return f;
return (x) {
@@ -122,8 +123,7 @@ ZoneSpecification dirtyCheckZoneSpec() {
}
return new ZoneSpecification(
- registerCallback: wrapCallback,
- registerUnaryCallback: wrapUnaryCallback);
+ registerCallback: wrapCallback, registerUnaryCallback: wrapUnaryCallback);
}
/// Forks a [Zone] off the current one that does dirty-checking automatically
« no previous file with comments | « lib/src/change_record.dart ('k') | lib/src/list_diff.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698