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

Side by Side Diff: packages/barback/lib/src/transformer/wrapping_aggregate_transformer.dart

Issue 3014633002: Roll to pickup pool changes (Closed)
Patch Set: Created 3 years, 2 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
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 'aggregate_transform.dart'; 10 import 'aggregate_transform.dart';
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 } 53 }
54 54
55 String toString() => transformer.toString(); 55 String toString() => transformer.toString();
56 } 56 }
57 57
58 /// A wrapper for [DeclaringTransformer]s that implements 58 /// A wrapper for [DeclaringTransformer]s that implements
59 /// [DeclaringAggregateTransformer]. 59 /// [DeclaringAggregateTransformer].
60 class _DeclaringWrappingAggregateTransformer 60 class _DeclaringWrappingAggregateTransformer
61 extends WrappingAggregateTransformer 61 extends WrappingAggregateTransformer
62 implements DeclaringAggregateTransformer { 62 implements DeclaringAggregateTransformer {
63 final DeclaringTransformer _declaring;
64
65 _DeclaringWrappingAggregateTransformer(DeclaringTransformer transformer) 63 _DeclaringWrappingAggregateTransformer(DeclaringTransformer transformer)
66 : _declaring = transformer, 64 : super._(transformer as Transformer);
67 super._(transformer as Transformer);
68 65
69 Future declareOutputs(DeclaringAggregateTransform aggregateTransform) { 66 Future declareOutputs(DeclaringAggregateTransform aggregateTransform) {
70 return newDeclaringTransform(aggregateTransform).then((transform) { 67 return newDeclaringTransform(aggregateTransform).then((transform) {
71 return (transformer as DeclaringTransformer).declareOutputs(transform); 68 return (transformer as DeclaringTransformer).declareOutputs(transform);
72 }); 69 });
73 } 70 }
74 } 71 }
75 72
76 /// A wrapper for [LazyTransformer]s that implements 73 /// A wrapper for [LazyTransformer]s that implements
77 /// [LazyAggregateTransformer]. 74 /// [LazyAggregateTransformer].
78 class _LazyWrappingAggregateTransformer 75 class _LazyWrappingAggregateTransformer
79 extends _DeclaringWrappingAggregateTransformer 76 extends _DeclaringWrappingAggregateTransformer
80 implements LazyAggregateTransformer { 77 implements LazyAggregateTransformer {
81 _LazyWrappingAggregateTransformer(LazyTransformer transformer) 78 _LazyWrappingAggregateTransformer(LazyTransformer transformer)
82 : super(transformer); 79 : super(transformer);
83 } 80 }
OLDNEW
« no previous file with comments | « packages/barback/lib/src/transformer/transformer.dart ('k') | packages/barback/lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698