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

Unified Diff: sdk/lib/_internal/pub/lib/src/pubspec.dart

Issue 169223010: Allow transformers to exclude and include assets. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 6 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/lib/src/pubspec.dart
diff --git a/sdk/lib/_internal/pub/lib/src/pubspec.dart b/sdk/lib/_internal/pub/lib/src/pubspec.dart
index b44bb555b43702ba7efccfcba060803ca122a666..274806179f9f21c8da393c183b24d0324c0802e2 100644
--- a/sdk/lib/_internal/pub/lib/src/pubspec.dart
+++ b/sdk/lib/_internal/pub/lib/src/pubspec.dart
@@ -162,18 +162,9 @@ class Pubspec {
_error('"$field.$library" field must be a map, but was '
'"$configuration".');
}
-
- var reservedKeys = configuration.keys
- .where((key) => key is String && key.startsWith(r'$'))
- .map((key) => '"$key"');
- if (reservedKeys.isNotEmpty) {
- _error('"$field.$library" field cannot contain reserved '
- '${pluralize('field', reservedKeys.length)} '
- '${toSentence(reservedKeys)}.');
- }
}
- var id = _wrapFormatException("transformer identifier",
+ var id = _wrapFormatException("transformer configuration",
"$field.$library",
() => new TransformerId.parse(library, configuration));

Powered by Google App Engine
This is Rietveld 408576698