pub fn compile_fn(
func: &FunctionNode<'_>,
fn_name: Option<&str>,
scope_info: &ScopeInfo,
fn_type: ReactFunctionType,
mode: CompilerOutputMode,
env_config: &EnvironmentConfig,
context: &mut ProgramContext,
) -> Result<CodegenFunction, CompilerError>Expand description
Run the compilation pipeline on a single function.
Currently: creates an Environment, runs BuildHIR (lowering), and produces debug output via the context. Returns a CodegenFunction with zeroed memo stats on success (codegen is not yet implemented).