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

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

Issue 224933002: Only run [Transformer.isPrimary] once for each asset/transformer pair. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 8 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
« no previous file with comments | « pkg/polymer/lib/src/build/mirrors_remover.dart ('k') | pkg/polymer/lib/src/build/script_compactor.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/build/polyfill_injector.dart
diff --git a/pkg/polymer/lib/src/build/polyfill_injector.dart b/pkg/polymer/lib/src/build/polyfill_injector.dart
index 6fcafd2b02adeba8a14aa6b10adedc5d69c5414d..f47ae4a12640c7b3adb5d173dae7b2daf4839b50 100644
--- a/pkg/polymer/lib/src/build/polyfill_injector.dart
+++ b/pkg/polymer/lib/src/build/polyfill_injector.dart
@@ -24,8 +24,8 @@ class PolyfillInjector extends Transformer with PolymerTransformer {
PolyfillInjector(this.options);
/// 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) {
return readPrimaryAsHtml(transform).then((document) {
« no previous file with comments | « pkg/polymer/lib/src/build/mirrors_remover.dart ('k') | pkg/polymer/lib/src/build/script_compactor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698