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

Unified Diff: pkg/polymer/lib/src/transform/script_compactor.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: 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
Index: pkg/polymer/lib/src/transform/script_compactor.dart
diff --git a/pkg/polymer/lib/src/transform/script_compactor.dart b/pkg/polymer/lib/src/transform/script_compactor.dart
index c247f2dc233caa8903dd61cc95de9dd24212b012..21be308385875fcd9f716fc80224cacada4cf585 100644
--- a/pkg/polymer/lib/src/transform/script_compactor.dart
+++ b/pkg/polymer/lib/src/transform/script_compactor.dart
@@ -27,10 +27,14 @@ import 'common.dart';
* invoke the main method on each of these libraries and register any polymer
* elements annotated with `@CustomTag`.
*/
-class ScriptCompactor extends Transformer {
+class ScriptCompactor extends Transformer with PolymerTransformer {
+ final TransformOptions options;
+
+ ScriptCompactor(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 id = transform.primaryInput.id;

Powered by Google App Engine
This is Rietveld 408576698