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

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

Issue 887223007: Revert "Use native async/await support in pub." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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/transformer_config.dart
diff --git a/sdk/lib/_internal/pub/lib/src/barback/transformer_config.dart b/sdk/lib/_internal/pub_generated/lib/src/barback/transformer_config.dart
similarity index 90%
copy from sdk/lib/_internal/pub/lib/src/barback/transformer_config.dart
copy to sdk/lib/_internal/pub_generated/lib/src/barback/transformer_config.dart
index c6906dd3f3e4c25724845bf56cded7d0e93094c3..11d959457fdb38b4cc23a0a6f907894ce17883b1 100644
--- a/sdk/lib/_internal/pub/lib/src/barback/transformer_config.dart
+++ b/sdk/lib/_internal/pub_generated/lib/src/barback/transformer_config.dart
@@ -63,7 +63,9 @@ class TransformerConfig {
// Check whether the first path component of the glob is "lib", "bin", or
// contains wildcards that may cause it to match "lib" or "bin".
var first = p.posix.split(glob.toString()).first;
- if (first.contains('{') || first.contains('*') || first.contains('[') ||
+ if (first.contains('{') ||
+ first.contains('*') ||
+ first.contains('[') ||
first.contains('?')) {
return true;
}
@@ -76,8 +78,9 @@ class TransformerConfig {
///
/// [identifierSpan] is the source span for [identifier].
factory TransformerConfig.parse(String identifier, SourceSpan identifierSpan,
- YamlMap configuration) =>
- new TransformerConfig(new TransformerId.parse(identifier, identifierSpan),
+ YamlMap configuration) =>
+ new TransformerConfig(
+ new TransformerId.parse(identifier, identifierSpan),
configuration);
factory TransformerConfig(TransformerId id, YamlMap configurationNode) {
@@ -92,7 +95,8 @@ class TransformerConfig {
if (field is! List) {
throw new SourceSpanFormatException(
- '"$key" field must be a string or list.', fieldNode.span);
+ '"$key" field must be a string or list.',
+ fieldNode.span);
}
return new Set.from(field.nodes.map((node) {
@@ -101,7 +105,8 @@ class TransformerConfig {
}
throw new SourceSpanFormatException(
- '"$key" field may contain only strings.', node.span);
+ '"$key" field may contain only strings.',
+ node.span);
}));
}
@@ -128,15 +133,16 @@ class TransformerConfig {
for (var key in configuration.keys) {
if (key is! String || !key.startsWith(r'$')) continue;
throw new SourceSpanFormatException(
- 'Unknown reserved field.', configurationNode.nodes[key].span);
+ 'Unknown reserved field.',
+ configurationNode.nodes[key].span);
}
}
return new TransformerConfig._(id, configuration, span, includes, excludes);
}
- TransformerConfig._(
- this.id, this.configuration, this.span, this.includes, this.excludes);
+ TransformerConfig._(this.id, this.configuration, this.span, this.includes,
+ this.excludes);
String toString() => id.toString();

Powered by Google App Engine
This is Rietveld 408576698