expectedOutputs function

Iterable<AssetId> expectedOutputs (Builder builder, AssetId input)

Collects the expected AssetIds created by builder when given input based on the extension configuration.

Implementation

Iterable<AssetId> expectedOutputs(Builder builder, AssetId input) {
  var matchingExtensions =
      builder.buildExtensions.keys.where((e) => input.path.endsWith(e));
  return matchingExtensions
      .expand((e) => _replaceExtensions(input, e, builder.buildExtensions[e]));
}