Skip to main content

for_each_unit

Function for_each_unit 

Source
pub(crate) fn for_each_unit(
    doc_text: &str,
    src_root: Option<&Path>,
    f: impl FnMut(&SourceUnit),
)
Expand description

Parse every project unit, plus the embedded first-party adapters (the bynk surface and the bynk.cloudflare platform adapter), and call f for each. Recovery parsing tolerates the in-progress edit at the cursor.