Skip to main content

scan

Function scan 

Source
pub(crate) fn scan(
    tokens: TokenStream,
    mutable: &BTreeSet<String>,
    handles: &BTreeSet<String>,
    acc: &mut Access,
)
Expand description

Record what tokens touch into acc.

mutable holds mut bindings and handles holds bindings to &mut values (including &mut self): method calls on them are writes unless the method looks read-only, and a handle passed along whole may be used for anything.