pub struct Finder { /* private fields */ }Expand description
A struct to find sub-nodes in AST by by a given Pattern
Implementations§
Trait Implementations§
Source§impl Visitor for Finder
impl Visitor for Finder
Source§fn on_and_asgn(&mut self, node: &AndAsgn)
fn on_and_asgn(&mut self, node: &AndAsgn)
Source§fn on_array_pattern(&mut self, node: &ArrayPattern)
fn on_array_pattern(&mut self, node: &ArrayPattern)
Source§fn on_array_pattern_with_tail(&mut self, node: &ArrayPatternWithTail)
fn on_array_pattern_with_tail(&mut self, node: &ArrayPatternWithTail)
Source§fn on_back_ref(&mut self, node: &BackRef)
fn on_back_ref(&mut self, node: &BackRef)
Source§fn on_blockarg(&mut self, node: &Blockarg)
fn on_blockarg(&mut self, node: &Blockarg)
Source§fn on_block_pass(&mut self, node: &BlockPass)
fn on_block_pass(&mut self, node: &BlockPass)
Source§fn on_case_match(&mut self, node: &CaseMatch)
fn on_case_match(&mut self, node: &CaseMatch)
Source§fn on_complex(&mut self, node: &Complex)
fn on_complex(&mut self, node: &Complex)
Source§fn on_const_pattern(&mut self, node: &ConstPattern)
fn on_const_pattern(&mut self, node: &ConstPattern)
Source§fn on_defined(&mut self, node: &Defined)
fn on_defined(&mut self, node: &Defined)
Source§fn on_e_flip_flop(&mut self, node: &EFlipFlop)
fn on_e_flip_flop(&mut self, node: &EFlipFlop)
Source§fn on_empty_else(&mut self, node: &EmptyElse)
fn on_empty_else(&mut self, node: &EmptyElse)
Source§fn on_encoding(&mut self, node: &Encoding)
fn on_encoding(&mut self, node: &Encoding)
Source§fn on_find_pattern(&mut self, node: &FindPattern)
fn on_find_pattern(&mut self, node: &FindPattern)
Source§fn on_forward_arg(&mut self, node: &ForwardArg)
fn on_forward_arg(&mut self, node: &ForwardArg)
Source§fn on_forwarded_args(&mut self, node: &ForwardedArgs)
fn on_forwarded_args(&mut self, node: &ForwardedArgs)
Source§fn on_hash_pattern(&mut self, node: &HashPattern)
fn on_hash_pattern(&mut self, node: &HashPattern)
Source§fn on_heredoc(&mut self, node: &Heredoc)
fn on_heredoc(&mut self, node: &Heredoc)
Source§fn on_if_guard(&mut self, node: &IfGuard)
fn on_if_guard(&mut self, node: &IfGuard)
Source§fn on_i_flip_flop(&mut self, node: &IFlipFlop)
fn on_i_flip_flop(&mut self, node: &IFlipFlop)
Source§fn on_if_ternary(&mut self, node: &IfTernary)
fn on_if_ternary(&mut self, node: &IfTernary)
Source§fn on_index_asgn(&mut self, node: &IndexAsgn)
fn on_index_asgn(&mut self, node: &IndexAsgn)
Source§fn on_in_pattern(&mut self, node: &InPattern)
fn on_in_pattern(&mut self, node: &InPattern)
Source§fn on_kw_begin(&mut self, node: &KwBegin)
fn on_kw_begin(&mut self, node: &KwBegin)
Source§fn on_kwnilarg(&mut self, node: &Kwnilarg)
fn on_kwnilarg(&mut self, node: &Kwnilarg)
Source§fn on_kwoptarg(&mut self, node: &Kwoptarg)
fn on_kwoptarg(&mut self, node: &Kwoptarg)
Source§fn on_kwrestarg(&mut self, node: &Kwrestarg)
fn on_kwrestarg(&mut self, node: &Kwrestarg)
Source§fn on_kwsplat(&mut self, node: &Kwsplat)
fn on_kwsplat(&mut self, node: &Kwsplat)
Source§fn on_match_alt(&mut self, node: &MatchAlt)
fn on_match_alt(&mut self, node: &MatchAlt)
Source§fn on_match_as(&mut self, node: &MatchAs)
fn on_match_as(&mut self, node: &MatchAs)
Source§fn on_match_current_line(&mut self, node: &MatchCurrentLine)
fn on_match_current_line(&mut self, node: &MatchCurrentLine)
Source§fn on_match_nil_pattern(&mut self, node: &MatchNilPattern)
fn on_match_nil_pattern(&mut self, node: &MatchNilPattern)
Source§fn on_match_pattern(&mut self, node: &MatchPattern)
fn on_match_pattern(&mut self, node: &MatchPattern)
Source§fn on_match_pattern_p(&mut self, node: &MatchPatternP)
fn on_match_pattern_p(&mut self, node: &MatchPatternP)
Source§fn on_match_rest(&mut self, node: &MatchRest)
fn on_match_rest(&mut self, node: &MatchRest)
Source§fn on_match_var(&mut self, node: &MatchVar)
fn on_match_var(&mut self, node: &MatchVar)
Source§fn on_match_with_lvasgn(&mut self, node: &MatchWithLvasgn)
fn on_match_with_lvasgn(&mut self, node: &MatchWithLvasgn)
Source§fn on_nth_ref(&mut self, node: &NthRef)
fn on_nth_ref(&mut self, node: &NthRef)
Source§fn on_numblock(&mut self, node: &Numblock)
fn on_numblock(&mut self, node: &Numblock)
Source§fn on_op_asgn(&mut self, node: &OpAsgn)
fn on_op_asgn(&mut self, node: &OpAsgn)
Source§fn on_or_asgn(&mut self, node: &OrAsgn)
fn on_or_asgn(&mut self, node: &OrAsgn)
Source§fn on_postexe(&mut self, node: &Postexe)
fn on_postexe(&mut self, node: &Postexe)
Source§fn on_procarg0(&mut self, node: &Procarg0)
fn on_procarg0(&mut self, node: &Procarg0)
Source§fn on_rational(&mut self, node: &Rational)
fn on_rational(&mut self, node: &Rational)
Source§fn on_reg_opt(&mut self, node: &RegOpt)
fn on_reg_opt(&mut self, node: &RegOpt)
Source§fn on_rescue_body(&mut self, node: &RescueBody)
fn on_rescue_body(&mut self, node: &RescueBody)
Source§fn on_restarg(&mut self, node: &Restarg)
fn on_restarg(&mut self, node: &Restarg)
Source§fn on_s_class(&mut self, node: &SClass)
fn on_s_class(&mut self, node: &SClass)
Source§fn on_shadowarg(&mut self, node: &Shadowarg)
fn on_shadowarg(&mut self, node: &Shadowarg)
Source§fn on_unless_guard(&mut self, node: &UnlessGuard)
fn on_unless_guard(&mut self, node: &UnlessGuard)
Source§fn on_until_post(&mut self, node: &UntilPost)
fn on_until_post(&mut self, node: &UntilPost)
Source§fn on_while_post(&mut self, node: &WhilePost)
fn on_while_post(&mut self, node: &WhilePost)
Source§fn on_x_heredoc(&mut self, node: &XHeredoc)
fn on_x_heredoc(&mut self, node: &XHeredoc)
Source§fn on_z_super(&mut self, node: &ZSuper)
fn on_z_super(&mut self, node: &ZSuper)
Auto Trait Implementations§
impl Freeze for Finder
impl RefUnwindSafe for Finder
impl Send for Finder
impl Sync for Finder
impl Unpin for Finder
impl UnsafeUnpin for Finder
impl UnwindSafe for Finder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more