Structs§
- Wrapper for visitor that calls inner visitors. Inner visitor should implement
Visitor
trait andsyn::visit_mut::VisitMut
.
Enums§
- Enum that represents the different types with valid Rust code that can be visited using
syn::Visitor
. Usuallysyn::Block
orsyn::Expr
.
Traits§
- Define walker for
CustomNode
. - Visitor api provide a way to traverse the node tree and modify its components. The api allows modification of all types of nodes, and some atoms like InvalidBlock or NodeName.
Functions§
- Visit attributes in array calling visitor methods.
- Visitor entrypoint. Visit nodes in array calling visitor methods. Recursively visit nodes in children, and attributes.
- Visitor entrypoint. Visit nodes in array calling visitor methods. Recursively visit nodes in children, and attributes. Provide custom handler that is used to visit custom nodes. Custom handler should return true if visitor should continue to traverse, and call visitor methods for its children.