Skip to main content

python_direct_scope_bindings_bounded

Function python_direct_scope_bindings_bounded 

Source
pub fn python_direct_scope_bindings_bounded<'tree>(
    node: Node<'tree>,
    source: &str,
    scope_step: impl FnMut() -> bool,
) -> Option<Vec<PythonDirectScopeBinding<'tree>>>
Expand description

Return the bindings introduced directly by node.

Descendant traversal remains the caller’s responsibility. This lets the semantic file walk build a module binding inventory without adding a second whole-file scan, while reusing the same structured target handling as function symbol-table discovery.