pub fn python_module_global_source_facts(
root: Node<'_>,
source: &str,
max_nodes: usize,
keep_going: impl FnMut() -> bool,
) -> Option<PythonModuleGlobalSourceFacts>Expand description
Collect bounded, per-file module-binding syntax facts.
The module binding walk skips function, lambda and class bodies, but still
visits their headers because decorators and defaults execute in the
enclosing scope. A second iterative walk records global declarations and
reflective writes wherever they occur in the module.