pub fn enclosing_scope_facts<'a>(
index: &dyn CodeUnitIndex,
file: &ProjectFile,
scope_facts: &'a HashMap<CodeUnit, LocalBindingsSnapshot<String>>,
node: Node<'_>,
) -> Option<&'a LocalBindingsSnapshot<String>>Expand description
The per-function receiver-type facts enclosing node, if any. Shared by the
forward scan (ScanCtx) and the inverted builder (PyScan) so the two
paths resolve a receiver’s scope through one place.