compileModuleRaw method
Compile a single module to raw (unformatted) Dart source.
Useful for diagnostics when formatting fails due to parser errors.
Implementation
String compileModuleRaw(String moduleName) {
final module = program.modules.firstWhere(
(m) => m.name == moduleName,
orElse: () =>
throw StateError('Module "$moduleName" not found in program'),
);
return _emitRaw(_buildLibrary(module, null));
}