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

Side by Side Diff: lib/src/transformer/wrapping_aggregate_transformer.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 unified diff | Download patch
« no previous file with comments | « lib/src/transformer/declaring_aggregate_transform.dart ('k') | lib/src/utils.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library barback.transformer.wrapping_aggregate_transformer; 5 library barback.transformer.wrapping_aggregate_transformer;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import '../asset/asset_id.dart'; 9 import '../asset/asset_id.dart';
10 import '../utils.dart';
11 import 'aggregate_transform.dart'; 10 import 'aggregate_transform.dart';
12 import 'aggregate_transformer.dart'; 11 import 'aggregate_transformer.dart';
13 import 'declaring_aggregate_transform.dart'; 12 import 'declaring_aggregate_transform.dart';
14 import 'declaring_aggregate_transformer.dart'; 13 import 'declaring_aggregate_transformer.dart';
15 import 'declaring_transform.dart'; 14 import 'declaring_transform.dart';
16 import 'declaring_transformer.dart'; 15 import 'declaring_transformer.dart';
17 import 'lazy_aggregate_transformer.dart'; 16 import 'lazy_aggregate_transformer.dart';
18 import 'lazy_transformer.dart'; 17 import 'lazy_transformer.dart';
19 import 'transform.dart'; 18 import 'transform.dart';
20 import 'transformer.dart'; 19 import 'transformer.dart';
(...skipping 16 matching lines...) Expand all
37 return new _DeclaringWrappingAggregateTransformer( 36 return new _DeclaringWrappingAggregateTransformer(
38 transformer as DeclaringTransformer); 37 transformer as DeclaringTransformer);
39 } else { 38 } else {
40 return new WrappingAggregateTransformer._(transformer); 39 return new WrappingAggregateTransformer._(transformer);
41 } 40 }
42 } 41 }
43 42
44 WrappingAggregateTransformer._(this.transformer); 43 WrappingAggregateTransformer._(this.transformer);
45 44
46 Future<String> classifyPrimary(AssetId id) { 45 Future<String> classifyPrimary(AssetId id) {
47 return syncFuture(() => transformer.isPrimary(id)) 46 return new Future.sync(() => transformer.isPrimary(id))
48 .then((isPrimary) => isPrimary ? id.path : null); 47 .then((isPrimary) => isPrimary ? id.path : null);
49 } 48 }
50 49
51 Future apply(AggregateTransform aggregateTransform) { 50 Future apply(AggregateTransform aggregateTransform) {
52 return newTransform(aggregateTransform) 51 return newTransform(aggregateTransform)
53 .then((transform) => transformer.apply(transform)); 52 .then((transform) => transformer.apply(transform));
54 } 53 }
55 54
56 String toString() => transformer.toString(); 55 String toString() => transformer.toString();
57 } 56 }
(...skipping 17 matching lines...) Expand all
75 } 74 }
76 75
77 /// A wrapper for [LazyTransformer]s that implements 76 /// A wrapper for [LazyTransformer]s that implements
78 /// [LazyAggregateTransformer]. 77 /// [LazyAggregateTransformer].
79 class _LazyWrappingAggregateTransformer 78 class _LazyWrappingAggregateTransformer
80 extends _DeclaringWrappingAggregateTransformer 79 extends _DeclaringWrappingAggregateTransformer
81 implements LazyAggregateTransformer { 80 implements LazyAggregateTransformer {
82 _LazyWrappingAggregateTransformer(LazyTransformer transformer) 81 _LazyWrappingAggregateTransformer(LazyTransformer transformer)
83 : super(transformer); 82 : super(transformer);
84 } 83 }
OLDNEW
« no previous file with comments | « lib/src/transformer/declaring_aggregate_transform.dart ('k') | lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698