Skip to main content

absent_flag

Function absent_flag 

Source
pub(crate) fn absent_flag(formal: &str) -> String
Expand description

The local that holds whether the single-choice Missing<..> parameter with R formal formal reads as omitted (#2182): .mx_absent_<formal>. The prelude binds it right before the parameter’s check (CallAttribution::match_arg_lines), the check is skipped when it is TRUE, and the .Call() argument forwards the missing-argument sentinel for it (RArgumentBuilder::with_absent_formals). A declared formal can’t start with .mx_ (declared_formal_problem) and a Rust name can’t start with ., so no formal takes its name.