formatModule method

void formatModule(
  1. ASTCompilation compilation, {
  2. FormatterConfig? config,
})

Implementation

void formatModule(ASTCompilation compilation, {FormatterConfig? config}) {
  for (final result in compilation.values.values) {
    result.source!.content = format(result.nodes, config: config);
  }
  for (final result in compilation.sources.values) {
    result.source!.content = format(result.nodes, config: config);
  }
}