Lines Matching full:visit
242 //! - **`visit`** — Trait for traversing a syntax tree.
243 //! - **`visit-mut`** — Trait for traversing and mutating in place a syntax
644 /// Each method of the [`Visit`] trait is a hook that can be overridden to
649 /// [`Visit`]: visit::Visit
654 /// pub trait Visit<'ast> {
669 /// V: Visit<'ast> + ?Sized,
692 /// // syn = { version = "2.0", features = ["full", "visit"] }
695 /// use syn::visit::{self, Visit};
700 /// impl<'ast> Visit<'ast> for FnVisitor {
704 /// // Delegate to the default impl to visit any nested functions.
705 /// visit::visit_item_fn(self, node);
722 /// outlives the complete recursive visit call, so the visitor is allowed to
727 /// use syn::visit::{self, Visit};
734 /// impl<'ast> Visit<'ast> for FnVisitor<'ast> {
737 /// visit::visit_item_fn(self, node);
756 #[cfg(feature = "visit")]
757 #[cfg_attr(docsrs, doc(cfg(feature = "visit")))]
759 pub mod visit; module
812 /// // syn = { version = "2.0", features = ["full", "visit-mut"] }
833 /// // Delegate to the default impl to visit nested expressions.
850 #[cfg(feature = "visit-mut")]
851 #[cfg_attr(docsrs, doc(cfg(feature = "visit-mut")))]
876 #[cfg(feature = "visit")]
877 #[cfg_attr(docsrs, doc(cfg(feature = "visit")))]
878 pub use crate::gen::visit;
880 #[cfg(feature = "visit-mut")]
881 #[cfg_attr(docsrs, doc(cfg(feature = "visit-mut")))]