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

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

Issue 293023008: Bring back initPolymer, allow boot.js only if using "polymer_experimental.html". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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/linter.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/mirrors_remover.dart
diff --git a/pkg/polymer/lib/src/build/mirrors_remover.dart b/pkg/polymer/lib/src/build/mirrors_remover.dart
index 19f6fd6aeaef5d4d7b6668fe3516d8b4dcfd2c54..2eb3294961d0c2833d6c2c78eb597fd75ecd4203 100644
--- a/pkg/polymer/lib/src/build/mirrors_remover.dart
+++ b/pkg/polymer/lib/src/build/mirrors_remover.dart
@@ -32,9 +32,13 @@ class MirrorsRemover extends Transformer {
var end = code.indexOf('show MirrorsUsed;', start);
if (end == -1) _error();
end = code.indexOf('\n', end);
+ var loaderImport = code.indexOf(
+ "import 'src/mirror_loader.dart' as loader;", end);
+ if (loaderImport == -1) _error();
var sb = new StringBuffer()
..write(code.substring(0, start))
- ..write(code.substring(end));
+ ..write(code.substring(end)
+ .replaceAll('src/mirror_loader.dart', 'src/static_loader.dart'));
transform.addOutput(new Asset.fromString(id, sb.toString()));
});
« no previous file with comments | « pkg/polymer/lib/src/build/linter.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