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

Unified Diff: samples/third_party/dromaeo/lib/transformer.dart

Issue 223553008: Only pass an AssetId to isPrimary and declareOutputs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixes Created 6 years, 9 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: samples/third_party/dromaeo/lib/transformer.dart
diff --git a/samples/third_party/dromaeo/lib/transformer.dart b/samples/third_party/dromaeo/lib/transformer.dart
index 88fb58485fdd0040d3ed427a19fe0bde0c0fffeb..fa50ea3d87b07162273774f261fab355e8e5c1a9 100644
--- a/samples/third_party/dromaeo/lib/transformer.dart
+++ b/samples/third_party/dromaeo/lib/transformer.dart
@@ -13,9 +13,9 @@ class DromaeoTransformer extends Transformer {
/// The index.html file and the tests/dom-*-html.html files are the ones we
/// apply this transform to.
- Future<bool> isPrimary(Asset asset) {
+ Future<bool> isPrimary(AssetId id) {
var reg = new RegExp('(tests/dom-.+-html\.html\$)|(index\.html\$)');
- return new Future.value(reg.hasMatch(asset.id.path));
+ return new Future.value(reg.hasMatch(id.path));
}
Future apply(Transform transform) {

Powered by Google App Engine
This is Rietveld 408576698