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

Unified Diff: sdk/lib/_internal/pub_generated/lib/src/barback/excluding_aggregate_transformer.dart

Issue 557563002: Store the async-await compiled pub code directly in the repo. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
Index: sdk/lib/_internal/pub_generated/lib/src/barback/excluding_aggregate_transformer.dart
diff --git a/sdk/lib/_internal/pub/lib/src/barback/excluding_aggregate_transformer.dart b/sdk/lib/_internal/pub_generated/lib/src/barback/excluding_aggregate_transformer.dart
similarity index 57%
copy from sdk/lib/_internal/pub/lib/src/barback/excluding_aggregate_transformer.dart
copy to sdk/lib/_internal/pub_generated/lib/src/barback/excluding_aggregate_transformer.dart
index beed5ce776ce49873404297676f117ac55a641bd..bbb304f17a82d7f018a98034f68699f786aacfeb 100644
--- a/sdk/lib/_internal/pub/lib/src/barback/excluding_aggregate_transformer.dart
+++ b/sdk/lib/_internal/pub_generated/lib/src/barback/excluding_aggregate_transformer.dart
@@ -1,69 +1,44 @@
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
library pub.excluding_aggregate_transformer;
-
import 'dart:async';
-
import 'package:barback/barback.dart';
-
import 'transformer_config.dart';
-
-/// Decorates an inner [AggregateTransformer] and handles including and
-/// excluding primary inputs.
class ExcludingAggregateTransformer extends AggregateTransformer {
- /// If [config] defines includes or excludes, wraps [inner] in an
- /// [ExcludingAggregateTransformer] that handles those.
- ///
- /// Otherwise, just returns [inner] unmodified.
static AggregateTransformer wrap(AggregateTransformer inner,
TransformerConfig config) {
if (!config.hasExclusions) return inner;
-
if (inner is LazyAggregateTransformer) {
return new _LazyExcludingAggregateTransformer(
- inner as LazyAggregateTransformer, config);
+ inner as LazyAggregateTransformer,
+ config);
} else if (inner is DeclaringAggregateTransformer) {
return new _DeclaringExcludingAggregateTransformer(
- inner as DeclaringAggregateTransformer, config);
+ inner as DeclaringAggregateTransformer,
+ config);
} else {
return new ExcludingAggregateTransformer._(inner, config);
}
}
-
final AggregateTransformer _inner;
-
- /// The config containing rules for which assets to include or exclude.
final TransformerConfig _config;
-
ExcludingAggregateTransformer._(this._inner, this._config);
-
classifyPrimary(AssetId id) {
if (!_config.canTransform(id.path)) return null;
return _inner.classifyPrimary(id);
}
-
Future apply(AggregateTransform transform) => _inner.apply(transform);
-
String toString() => _inner.toString();
}
-
-class _DeclaringExcludingAggregateTransformer
- extends ExcludingAggregateTransformer
- implements DeclaringAggregateTransformer {
+class _DeclaringExcludingAggregateTransformer extends
+ ExcludingAggregateTransformer implements DeclaringAggregateTransformer {
_DeclaringExcludingAggregateTransformer(DeclaringAggregateTransformer inner,
- TransformerConfig config)
+ TransformerConfig config)
: super._(inner as AggregateTransformer, config);
-
Future declareOutputs(DeclaringAggregateTransform transform) =>
(_inner as DeclaringAggregateTransformer).declareOutputs(transform);
}
-
-class _LazyExcludingAggregateTransformer
- extends _DeclaringExcludingAggregateTransformer
- implements LazyAggregateTransformer {
+class _LazyExcludingAggregateTransformer extends
+ _DeclaringExcludingAggregateTransformer implements LazyAggregateTransformer {
_LazyExcludingAggregateTransformer(DeclaringAggregateTransformer inner,
- TransformerConfig config)
+ TransformerConfig config)
: super(inner, config);
}

Powered by Google App Engine
This is Rietveld 408576698