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

Unified Diff: pkg/polymer/lib/src/build/mirrors_remover.dart

Issue 223553008: Only pass an AssetId to isPrimary and declareOutputs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixes Created 6 years, 9 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: pkg/polymer/lib/src/build/mirrors_remover.dart
diff --git a/pkg/polymer/lib/src/build/mirrors_remover.dart b/pkg/polymer/lib/src/build/mirrors_remover.dart
index 60b9e2b2d1c05b23e0956c9fb3b34c37d75a2e92..f62fa2c4fde1c05027247e3267b33b88af7bc770 100644
--- a/pkg/polymer/lib/src/build/mirrors_remover.dart
+++ b/pkg/polymer/lib/src/build/mirrors_remover.dart
@@ -14,9 +14,8 @@ class MirrorsRemover extends Transformer {
MirrorsRemover.asPlugin();
/// Only apply to `lib/polymer.dart`.
- Future<bool> isPrimary(Asset input) => new Future.value(
- input.id.package == 'polymer' &&
- input.id.path == 'lib/polymer.dart');
+ Future<bool> isPrimary(AssetId id) => new Future.value(
+ id.package == 'polymer' && id.path == 'lib/polymer.dart');
Future apply(Transform transform) {
var id = transform.primaryInput.id;

Powered by Google App Engine
This is Rietveld 408576698