deno_ast

Function emit

Source
pub fn emit(
    program: ProgramRef<'_>,
    comments: &dyn Comments,
    source_map: &SourceMap,
    emit_options: &EmitOptions,
) -> Result<EmittedSourceText, EmitError>
Expand description

Emits the program as a string of JavaScript code, possibly with the passed comments, and optionally also a source map.