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

Unified Diff: lib/src/graph/transform_node.dart

Issue 1947773002: Fix all strong-mode warnings. (Closed) Base URL: git@github.com:dart-lang/barback@master
Patch Set: Code review changes Created 4 years, 7 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/graph/static_asset_cascade.dart ('k') | lib/src/graph/transformer_classifier.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/graph/transform_node.dart
diff --git a/lib/src/graph/transform_node.dart b/lib/src/graph/transform_node.dart
index 61bab3f258943d925ef0be951fec42fe2f1156e5..72f79680a52aa3dd993bbc79f7f1caa21f239cad 100644
--- a/lib/src/graph/transform_node.dart
+++ b/lib/src/graph/transform_node.dart
@@ -6,6 +6,8 @@ library barback.graph.transform_node;
import 'dart:async';
+import 'package:async/async.dart';
+
import '../asset/asset.dart';
import '../asset/asset_id.dart';
import '../asset/asset_node.dart';
@@ -437,7 +439,7 @@ class TransformNode {
}
_maybeFinishDeclareController();
- syncFuture(() {
+ new Future.sync(() {
return (transformer as DeclaringAggregateTransformer)
.declareOutputs(controller.transform);
}).whenComplete(() {
@@ -628,7 +630,7 @@ class TransformNode {
}
_maybeFinishApplyController();
- return syncFuture(() {
+ return DelegatingFuture.typed(new Future.sync(() {
_timeInTransformer.reset();
_timeAwaitingInputs.reset();
_timeInTransformer.start();
@@ -688,7 +690,7 @@ class TransformNode {
// is so a broken transformer doesn't take down the whole graph.
phase.cascade.reportError(_wrapException(error, stackTrace));
return true;
- });
+ }));
}
/// Handle the results of running [Transformer.apply].
« no previous file with comments | « lib/src/graph/static_asset_cascade.dart ('k') | lib/src/graph/transformer_classifier.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698