MCPcopy Create free account
hub / github.com/astral-sh/ruff / leave_node

Method leave_node

crates/ruff_python_ast/src/find_node.rs:33–37  ·  view source on GitHub ↗
(&mut self, node: AnyNodeRef<'a>)

Source from the content-addressed store, hash-verified

31 }
32
33 fn leave_node(&mut self, node: AnyNodeRef<'a>) {
34 if !self.found && self.ancestors.last() == Some(&node) {
35 self.found = true;
36 }
37 }
38 }
39
40 assert!(

Callers

nothing calls this directly

Calls 1

lastMethod · 0.45

Tested by

no test coverage detected