process method

void process()

Implementation

void process() {
  for (final theme in themes) {
    //print('Generating Theme: ${theme.name}');
    final resolved = theme.resolvedTokens;

    final single = _loopProcess(singleTokenTransformerFactories, resolved);
    final multi = _loopProcess(multiTokenTransformerFactories, resolved)
        .cast<MultiTokenTransformer>()
      ..forEach((element) => element.postProcess());

    theme.transformers.addAll(
      [...single, ...multi].where((element) => element.lines.isNotEmpty),
    );
  }
}