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

Unified Diff: lib/src/graph/transformer_classifier.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/transform_node.dart ('k') | lib/src/transformer/aggregate_transform.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/graph/transformer_classifier.dart
diff --git a/lib/src/graph/transformer_classifier.dart b/lib/src/graph/transformer_classifier.dart
index a095e8d0411724938abd471dbf4f89aa6fd6990f..d57f80a02c406dbc61369cfb765dbe1055a746e4 100644
--- a/lib/src/graph/transformer_classifier.dart
+++ b/lib/src/graph/transformer_classifier.dart
@@ -12,7 +12,6 @@ import '../errors.dart';
import '../log.dart';
import '../transformer/aggregate_transformer.dart';
import '../transformer/wrapping_aggregate_transformer.dart';
-import '../utils.dart';
import 'node_status.dart';
import 'node_streams.dart';
import 'phase.dart';
@@ -74,8 +73,8 @@ class TransformerClassifier {
/// Adds a new asset as an input for this transformer.
void addInput(AssetNode input) {
_activeClassifications++;
- syncFuture(() => transformer.classifyPrimary(input.id)).catchError(
- (error, stackTrace) {
+ new Future.sync(() => transformer.classifyPrimary(input.id))
+ .catchError((error, stackTrace) {
if (input.state.isRemoved) return null;
// Catch all transformer errors and pipe them to the results stream. This
« no previous file with comments | « lib/src/graph/transform_node.dart ('k') | lib/src/transformer/aggregate_transform.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698