| OLD | NEW |
| 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 pub.excluding_transformer; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 | 6 |
| 9 import 'package:barback/barback.dart'; | 7 import 'package:barback/barback.dart'; |
| 10 | 8 |
| 11 import 'transformer_config.dart'; | 9 import 'transformer_config.dart'; |
| 12 | 10 |
| 13 /// Decorates an inner [Transformer] and handles including and excluding | 11 /// Decorates an inner [Transformer] and handles including and excluding |
| 14 /// primary inputs. | 12 /// primary inputs. |
| 15 class ExcludingTransformer extends Transformer { | 13 class ExcludingTransformer extends Transformer { |
| 16 /// If [config] defines includes or excludes, wraps [inner] in an | 14 /// If [config] defines includes or excludes, wraps [inner] in an |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 Future declareOutputs(DeclaringTransform transform) => | 55 Future declareOutputs(DeclaringTransform transform) => |
| 58 (_inner as DeclaringTransformer).declareOutputs(transform); | 56 (_inner as DeclaringTransformer).declareOutputs(transform); |
| 59 } | 57 } |
| 60 | 58 |
| 61 class _LazyExcludingTransformer extends _DeclaringExcludingTransformer | 59 class _LazyExcludingTransformer extends _DeclaringExcludingTransformer |
| 62 implements LazyTransformer { | 60 implements LazyTransformer { |
| 63 _LazyExcludingTransformer(DeclaringTransformer inner, | 61 _LazyExcludingTransformer(DeclaringTransformer inner, |
| 64 TransformerConfig config) | 62 TransformerConfig config) |
| 65 : super(inner, config); | 63 : super(inner, config); |
| 66 } | 64 } |
| OLD | NEW |