fusion/codegen
Values
pub fn transform_class(
class: types.ClassDef,
build_dir: String,
package_name: String,
) -> Result(String, String)
Generate a class adapter for a compiled Gleam module.
The generated methods delegate to the original compiled functions. This keeps the original module and its source map in the bundle, so errors in Gleam code can still be mapped back to the .gleam source file.