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

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

Issue 23456028: report error message when import urls are broken. (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 | « no previous file | pkg/polymer/lib/src/build/linter.dart » ('j') | pkg/polymer/lib/src/build/linter.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/build/common.dart
diff --git a/pkg/polymer/lib/src/build/common.dart b/pkg/polymer/lib/src/build/common.dart
index 6233aa38e5abb951690445d650cf389103724ad7..f5b44315d45c472fe05115df6295d66072207cf6 100644
--- a/pkg/polymer/lib/src/build/common.dart
+++ b/pkg/polymer/lib/src/build/common.dart
@@ -78,6 +78,9 @@ abstract class PolymerTransformer {
checkDocType: options.isHtmlEntryPoint(id));
});
}
+
+ Future<bool> assetExists(AssetId id, Transform transform) =>
+ transform.getInput(id).then((_) => true).catchError((_) => false);
}
/** Create an [AssetId] for a [url] seen in the [source] asset. */
« no previous file with comments | « no previous file | pkg/polymer/lib/src/build/linter.dart » ('j') | pkg/polymer/lib/src/build/linter.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698