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

Unified Diff: pkg/polymer/lib/src/build/script_compactor.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/script_compactor.dart
diff --git a/pkg/polymer/lib/src/build/script_compactor.dart b/pkg/polymer/lib/src/build/script_compactor.dart
index 6a9fc420eb6e9258a69428a3f90f5960068a2f4d..aa1fdc0ecab369c93333a2f8f43a316c28470786 100644
--- a/pkg/polymer/lib/src/build/script_compactor.dart
+++ b/pkg/polymer/lib/src/build/script_compactor.dart
@@ -48,8 +48,8 @@ class ScriptCompactor extends Transformer {
: resolvers = new Resolvers(sdkDir != null ? sdkDir : dartSdkDirectory);
/// Only run on entry point .html files.
- Future<bool> isPrimary(Asset input) =>
- new Future.value(options.isHtmlEntryPoint(input.id));
+ Future<bool> isPrimary(AssetId id) =>
+ new Future.value(options.isHtmlEntryPoint(id));
Future apply(Transform transform) =>
new _ScriptCompactor(transform, options, resolvers).apply();

Powered by Google App Engine
This is Rietveld 408576698