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

Function walk_node

crates/ruff_python_ast/src/visitor/source_order.rs:225–234  ·  view source on GitHub ↗
(visitor: &mut V, node: AnyNodeRef<'a>)

Source from the content-addressed store, hash-verified

223}
224
225pub fn walk_node<'a, V>(visitor: &mut V, node: AnyNodeRef<'a>)
226where
227 V: SourceOrderVisitor<'a> + ?Sized,
228{
229 if visitor.enter_node(node).is_traverse() {
230 node.visit_source_order(visitor);
231 }
232
233 visitor.leave_node(node);
234}
235
236#[derive(Copy, Clone, Eq, PartialEq, Debug)]
237pub enum TraversalSignal {

Callers 2

covering_nodeFunction · 0.85
folding_rangesFunction · 0.85

Calls 4

is_traverseMethod · 0.80
enter_nodeMethod · 0.45
visit_source_orderMethod · 0.45
leave_nodeMethod · 0.45

Tested by

no test coverage detected