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

Unified Diff: sdk/lib/_internal/pub/lib/src/barback/rewrite_import_transformer.dart

Issue 314583007: Only parse the directives when rewriting imports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise! 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/analyzer/pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/barback/rewrite_import_transformer.dart
diff --git a/sdk/lib/_internal/pub/lib/src/barback/rewrite_import_transformer.dart b/sdk/lib/_internal/pub/lib/src/barback/rewrite_import_transformer.dart
index 6f454b6519f14e2bcad1238447bfddb906139109..8392289e3e33d8d0d4d7b8815b84a6f36b7ace63 100644
--- a/sdk/lib/_internal/pub/lib/src/barback/rewrite_import_transformer.dart
+++ b/sdk/lib/_internal/pub/lib/src/barback/rewrite_import_transformer.dart
@@ -17,7 +17,7 @@ class RewriteImportTransformer extends Transformer {
Future apply(Transform transform) {
return transform.primaryInput.readAsString().then((contents) {
var collector = new _DirectiveCollector();
- parseCompilationUnit(contents, name: transform.primaryInput.id.toString())
+ parseDirectives(contents, name: transform.primaryInput.id.toString())
.accept(collector);
var buffer = new StringBuffer();
« no previous file with comments | « pkg/analyzer/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698