Module visitor

Source
Expand description

Specifies a visitor trait following the visitor pattern because it’s easier to walk the entire tree just by some nodes without writing some functions to walk through everything (yeah i really hate OOP patterns but this time it’s really useful.)

All of these functions are implemented so we can easily change these default implementations. use kind_span::{Range, SyntaxCtxIndex};

Traits§

Visitor

Functions§

walk_app_binding
walk_argument
walk_attr
walk_attr_style
walk_binding
walk_book
walk_case
walk_case_binding
walk_constructor
walk_destruct
walk_entry
walk_expr
walk_ident
walk_literal
walk_match
walk_module
walk_pat
walk_pat_ident
walk_qualified_ident
walk_range
walk_rule
walk_sttm
walk_substitution
walk_syntax_ctx
walk_top_level