pub async fn execute_and_snapshot_ast(
ast: Program,
units: UnitLength,
current_file: Option<PathBuf>,
with_export_step: bool,
) -> Result<(ExecState, EnvironmentRef, DynamicImage, Option<Vec<u8>>), ExecErrorWithState>
Expand description
Executes a kcl program and takes a snapshot of the result. This returns the bytes of the snapshot.