pub trait Walk: Any {
// Required method
fn walk(&self, visitor: &mut dyn Visitor) -> Result<()>;
}Expand description
Trait for AST nodes that can be walked by a visitor.
This trait is implemented by AST nodes that support visitor pattern traversal. It provides a way to walk through the AST structure and apply visitor operations to each node.