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

Side by Side Diff: pkg/code_transformers/test/assets_test.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: fix script_compactor Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/code_transformers/pubspec.yaml ('k') | pkg/code_transformers/test/entry_point_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library code_transformers.test.assets_test; 5 library code_transformers.test.assets_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:barback/barback.dart'; 9 import 'package:barback/barback.dart';
10 import 'package:code_transformers/assets.dart'; 10 import 'package:code_transformers/assets.dart';
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 errorOnAbsolute: false, 93 errorOnAbsolute: false,
94 result: null); 94 result: null);
95 }); 95 });
96 } 96 }
97 97
98 class Validator extends Transformer { 98 class Validator extends Transformer {
99 final Function validation; 99 final Function validation;
100 100
101 Validator(this.validation); 101 Validator(this.validation);
102 102
103 Future<bool> isPrimary(Asset input) => new Future.value(true);
104
105 Future apply(Transform transform) { 103 Future apply(Transform transform) {
106 return new Future.value(validation(transform)); 104 return new Future.value(validation(transform));
107 } 105 }
108 } 106 }
OLDNEW
« no previous file with comments | « pkg/code_transformers/pubspec.yaml ('k') | pkg/code_transformers/test/entry_point_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698