generateDigestForMultipleClassFile static method

String generateDigestForMultipleClassFile(
  1. DependencyVisitor visitor,
  2. List<String> filePaths
)

Calculates a combined digest for the provided filePaths list.

Implementation

static String generateDigestForMultipleClassFile(
  DependencyVisitor visitor,
  List<String> filePaths,
) {
  if (filePaths.isEmpty) {
    throw Exception(
      'filePaths list must not be empty when invoked to generate digest',
    );
  }

  final sb = StringBuffer();

  for (final file in filePaths) {
    sb.write(generateDigestForClassFile(visitor, file));
    sb.write('-');
  }

  return generateDigestForRawString(sb.toString());
}