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

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

Issue 23478015: Apply several phases only to entrypoint files (which currently are identified as (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
« no previous file with comments | « pkg/polymer/lib/deploy.dart ('k') | pkg/polymer/lib/src/transform/common.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/transform/code_extractor.dart
diff --git a/pkg/polymer/lib/src/transform/code_extractor.dart b/pkg/polymer/lib/src/transform/code_extractor.dart
index 20fd73a4f59c32a6190bf3860654da8dd3a7421e..4cc49b1c1420e9f0726881037a56a74d9d81586d 100644
--- a/pkg/polymer/lib/src/transform/code_extractor.dart
+++ b/pkg/polymer/lib/src/transform/code_extractor.dart
@@ -24,11 +24,11 @@ class InlineCodeExtractor extends Transformer {
/** Only run this transformer on .html files. */
final String allowedExtensions = ".html";
-
Future apply(Transform transform) {
var inputId = transform.primaryInput.id;
return transform.primaryInput.readAsString().then((content) {
- var document = parseHtml(content, inputId.path, transform.logger);
+ var document = parseHtml(content, inputId.path, transform.logger,
+ checkDocType: false);
int count = 0;
bool htmlChanged = false;
for (var tag in document.queryAll('script')) {
« no previous file with comments | « pkg/polymer/lib/deploy.dart ('k') | pkg/polymer/lib/src/transform/common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698