pub fn substitute_params(
body_text: &str,
param_to_arg: &HashMap<String, String>,
lang: LangId,
) -> Result<String, AftError>Expand description
Substitute parameter names with argument expressions in a function body.
Uses tree-sitter to find identifier nodes matching parameter names,
replacing from end to start to preserve byte offsets. Only replaces
whole-word matches (identifiers, not substrings).