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

Unified Diff: pkg/polymer/lib/src/transform/import_inliner.dart

Issue 23898009: Switch polymer's build.dart to use the new linter. This CL does the following (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: addressing john comments (part 2) - renamed files Created 7 years, 3 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/transform/common.dart ('k') | pkg/polymer/lib/src/transform/polyfill_injector.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/transform/import_inliner.dart
diff --git a/pkg/polymer/lib/src/transform/import_inliner.dart b/pkg/polymer/lib/src/transform/import_inliner.dart
index 889ce209706548fa0657291ffc1f93c79ce3cfa3..e924674b2a03a5ff3cd833b3960d0538e179c872 100644
--- a/pkg/polymer/lib/src/transform/import_inliner.dart
+++ b/pkg/polymer/lib/src/transform/import_inliner.dart
@@ -16,10 +16,14 @@ import 'common.dart';
/** Recursively inlines polymer-element definitions from html imports. */
// TODO(sigmund): make sure we match semantics of html-imports for tags other
// than polymer-element (see dartbug.com/12613).
-class ImportedElementInliner extends Transformer {
+class ImportedElementInliner extends Transformer with PolymerTransformer {
+ final TransformOptions options;
+
+ ImportedElementInliner(this.options);
+
/** Only run on entry point .html files. */
Future<bool> isPrimary(Asset input) =>
- new Future.value(isPrimaryHtml(input.id));
+ new Future.value(options.isHtmlEntryPoint(input.id));
Future apply(Transform transform) {
var seen = new Set<AssetId>();
« no previous file with comments | « pkg/polymer/lib/src/transform/common.dart ('k') | pkg/polymer/lib/src/transform/polyfill_injector.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698