Skip to main content

collect_string_interpolation_refs

Function collect_string_interpolation_refs 

Source
pub fn collect_string_interpolation_refs(s: &str, out: &mut BTreeSet<String>)
Expand description

Extract {name} interpolation references from a string literal’s contents. Skips format specifiers ({:05}, {:.2}) and non-identifier bodies. This is the string-interpolation grammar — the only place {name} is a reference inside a parsed Polydat expression. (Raw YAML template fields like an op’s prepared: use the same interpolation grammar but never reach the Polydat parser; the YAML-fusion layer applies collect_string_interpolation_refs to those directly.)