mintCombiningBuilder function

Builder mintCombiningBuilder([
  1. BuilderOptions options = BuilderOptions.empty
])

Implementation

Builder mintCombiningBuilder([BuilderOptions options = BuilderOptions.empty]) {
  final optionsMap = Map<String, dynamic>.from(options.config);

  final includePartName = optionsMap.remove('include_part_name') as bool?;
  final ignoreForFile = Set<String>.from(
    optionsMap.remove('ignore_for_file') as List? ?? <String>[],
  );
  final rewireParts = Set<String>.from(
    optionsMap.remove('mint_rewire_parts') as List? ?? <String>[],
  );
  final buildExtensions =
      validatedBuildExtensionsFrom(optionsMap, _defaultExtensions);

  final builder = MintCombiningBuilder(
    rewireParts: rewireParts,
    includePartName: includePartName,
    ignoreForFile: ignoreForFile,
    buildExtensions: buildExtensions,
  );

  if (optionsMap.isNotEmpty) {
    log.warning('These options were ignored: `$optionsMap`.');
  }
  return builder;
}