pub struct Finder { /* private fields */ }Expand description
A struct to find sub-nodes in AST by by a given Pattern
Implementations
Trait Implementations
sourceimpl Visitor for Finder
impl Visitor for Finder
sourcefn on_alias(&mut self, node: &Alias)
fn on_alias(&mut self, node: &Alias)
Invoked by a Visitor on entering into Alias node. Read more
sourcefn on_and_asgn(&mut self, node: &AndAsgn)
fn on_and_asgn(&mut self, node: &AndAsgn)
Invoked by a Visitor on entering into AndAsgn node. Read more
sourcefn on_array(&mut self, node: &Array)
fn on_array(&mut self, node: &Array)
Invoked by a Visitor on entering into Array node. Read more
sourcefn on_array_pattern(&mut self, node: &ArrayPattern)
fn on_array_pattern(&mut self, node: &ArrayPattern)
Invoked by a Visitor on entering into ArrayPattern node. Read more
sourcefn on_array_pattern_with_tail(&mut self, node: &ArrayPatternWithTail)
fn on_array_pattern_with_tail(&mut self, node: &ArrayPatternWithTail)
Invoked by a Visitor on entering into ArrayPatternWithTail node. Read more
sourcefn on_back_ref(&mut self, node: &BackRef)
fn on_back_ref(&mut self, node: &BackRef)
Invoked by a Visitor on entering into BackRef node. Read more
sourcefn on_begin(&mut self, node: &Begin)
fn on_begin(&mut self, node: &Begin)
Invoked by a Visitor on entering into Begin node. Read more
sourcefn on_block(&mut self, node: &Block)
fn on_block(&mut self, node: &Block)
Invoked by a Visitor on entering into Block node. Read more
sourcefn on_blockarg(&mut self, node: &Blockarg)
fn on_blockarg(&mut self, node: &Blockarg)
Invoked by a Visitor on entering into Blockarg node. Read more
sourcefn on_block_pass(&mut self, node: &BlockPass)
fn on_block_pass(&mut self, node: &BlockPass)
Invoked by a Visitor on entering into BlockPass node. Read more
sourcefn on_break(&mut self, node: &Break)
fn on_break(&mut self, node: &Break)
Invoked by a Visitor on entering into Break node. Read more
sourcefn on_case_match(&mut self, node: &CaseMatch)
fn on_case_match(&mut self, node: &CaseMatch)
Invoked by a Visitor on entering into CaseMatch node. Read more
sourcefn on_casgn(&mut self, node: &Casgn)
fn on_casgn(&mut self, node: &Casgn)
Invoked by a Visitor on entering into Casgn node. Read more
sourcefn on_cbase(&mut self, node: &Cbase)
fn on_cbase(&mut self, node: &Cbase)
Invoked by a Visitor on entering into Cbase node. Read more
sourcefn on_class(&mut self, node: &Class)
fn on_class(&mut self, node: &Class)
Invoked by a Visitor on entering into Class node. Read more
sourcefn on_complex(&mut self, node: &Complex)
fn on_complex(&mut self, node: &Complex)
Invoked by a Visitor on entering into Complex node. Read more
sourcefn on_const(&mut self, node: &Const)
fn on_const(&mut self, node: &Const)
Invoked by a Visitor on entering into Const node. Read more
sourcefn on_const_pattern(&mut self, node: &ConstPattern)
fn on_const_pattern(&mut self, node: &ConstPattern)
Invoked by a Visitor on entering into ConstPattern node. Read more
sourcefn on_c_send(&mut self, node: &CSend)
fn on_c_send(&mut self, node: &CSend)
Invoked by a Visitor on entering into CSend node. Read more
sourcefn on_cvasgn(&mut self, node: &Cvasgn)
fn on_cvasgn(&mut self, node: &Cvasgn)
Invoked by a Visitor on entering into Cvasgn node. Read more
sourcefn on_defined(&mut self, node: &Defined)
fn on_defined(&mut self, node: &Defined)
Invoked by a Visitor on entering into Defined node. Read more
sourcefn on_e_flip_flop(&mut self, node: &EFlipFlop)
fn on_e_flip_flop(&mut self, node: &EFlipFlop)
Invoked by a Visitor on entering into EFlipFlop node. Read more
sourcefn on_empty_else(&mut self, node: &EmptyElse)
fn on_empty_else(&mut self, node: &EmptyElse)
Invoked by a Visitor on entering into EmptyElse node. Read more
sourcefn on_encoding(&mut self, node: &Encoding)
fn on_encoding(&mut self, node: &Encoding)
Invoked by a Visitor on entering into Encoding node. Read more
sourcefn on_ensure(&mut self, node: &Ensure)
fn on_ensure(&mut self, node: &Ensure)
Invoked by a Visitor on entering into Ensure node. Read more
sourcefn on_erange(&mut self, node: &Erange)
fn on_erange(&mut self, node: &Erange)
Invoked by a Visitor on entering into Erange node. Read more
sourcefn on_false(&mut self, node: &False)
fn on_false(&mut self, node: &False)
Invoked by a Visitor on entering into False node. Read more
sourcefn on_find_pattern(&mut self, node: &FindPattern)
fn on_find_pattern(&mut self, node: &FindPattern)
Invoked by a Visitor on entering into FindPattern node. Read more
sourcefn on_float(&mut self, node: &Float)
fn on_float(&mut self, node: &Float)
Invoked by a Visitor on entering into Float node. Read more
sourcefn on_forward_arg(&mut self, node: &ForwardArg)
fn on_forward_arg(&mut self, node: &ForwardArg)
Invoked by a Visitor on entering into ForwardArg node. Read more
sourcefn on_forwarded_args(&mut self, node: &ForwardedArgs)
fn on_forwarded_args(&mut self, node: &ForwardedArgs)
Invoked by a Visitor on entering into ForwardedArgs node. Read more
sourcefn on_gvasgn(&mut self, node: &Gvasgn)
fn on_gvasgn(&mut self, node: &Gvasgn)
Invoked by a Visitor on entering into Gvasgn node. Read more
sourcefn on_hash_pattern(&mut self, node: &HashPattern)
fn on_hash_pattern(&mut self, node: &HashPattern)
Invoked by a Visitor on entering into HashPattern node. Read more
sourcefn on_heredoc(&mut self, node: &Heredoc)
fn on_heredoc(&mut self, node: &Heredoc)
Invoked by a Visitor on entering into Heredoc node. Read more
sourcefn on_if_guard(&mut self, node: &IfGuard)
fn on_if_guard(&mut self, node: &IfGuard)
Invoked by a Visitor on entering into IfGuard node. Read more
sourcefn on_i_flip_flop(&mut self, node: &IFlipFlop)
fn on_i_flip_flop(&mut self, node: &IFlipFlop)
Invoked by a Visitor on entering into IFlipFlop node. Read more
sourcefn on_if_mod(&mut self, node: &IfMod)
fn on_if_mod(&mut self, node: &IfMod)
Invoked by a Visitor on entering into IfMod node. Read more
sourcefn on_if_ternary(&mut self, node: &IfTernary)
fn on_if_ternary(&mut self, node: &IfTernary)
Invoked by a Visitor on entering into IfTernary node. Read more
sourcefn on_index(&mut self, node: &Index)
fn on_index(&mut self, node: &Index)
Invoked by a Visitor on entering into Index node. Read more
sourcefn on_index_asgn(&mut self, node: &IndexAsgn)
fn on_index_asgn(&mut self, node: &IndexAsgn)
Invoked by a Visitor on entering into IndexAsgn node. Read more
sourcefn on_in_pattern(&mut self, node: &InPattern)
fn on_in_pattern(&mut self, node: &InPattern)
Invoked by a Visitor on entering into InPattern node. Read more
sourcefn on_irange(&mut self, node: &Irange)
fn on_irange(&mut self, node: &Irange)
Invoked by a Visitor on entering into Irange node. Read more
sourcefn on_ivasgn(&mut self, node: &Ivasgn)
fn on_ivasgn(&mut self, node: &Ivasgn)
Invoked by a Visitor on entering into Ivasgn node. Read more
sourcefn on_kwarg(&mut self, node: &Kwarg)
fn on_kwarg(&mut self, node: &Kwarg)
Invoked by a Visitor on entering into Kwarg node. Read more
sourcefn on_kwargs(&mut self, node: &Kwargs)
fn on_kwargs(&mut self, node: &Kwargs)
Invoked by a Visitor on entering into Kwargs node. Read more
sourcefn on_kw_begin(&mut self, node: &KwBegin)
fn on_kw_begin(&mut self, node: &KwBegin)
Invoked by a Visitor on entering into KwBegin node. Read more
sourcefn on_kwnilarg(&mut self, node: &Kwnilarg)
fn on_kwnilarg(&mut self, node: &Kwnilarg)
Invoked by a Visitor on entering into Kwnilarg node. Read more
sourcefn on_kwoptarg(&mut self, node: &Kwoptarg)
fn on_kwoptarg(&mut self, node: &Kwoptarg)
Invoked by a Visitor on entering into Kwoptarg node. Read more
sourcefn on_kwrestarg(&mut self, node: &Kwrestarg)
fn on_kwrestarg(&mut self, node: &Kwrestarg)
Invoked by a Visitor on entering into Kwrestarg node. Read more
sourcefn on_kwsplat(&mut self, node: &Kwsplat)
fn on_kwsplat(&mut self, node: &Kwsplat)
Invoked by a Visitor on entering into Kwsplat node. Read more
sourcefn on_lambda(&mut self, node: &Lambda)
fn on_lambda(&mut self, node: &Lambda)
Invoked by a Visitor on entering into Lambda node. Read more
sourcefn on_lvasgn(&mut self, node: &Lvasgn)
fn on_lvasgn(&mut self, node: &Lvasgn)
Invoked by a Visitor on entering into Lvasgn node. Read more
sourcefn on_masgn(&mut self, node: &Masgn)
fn on_masgn(&mut self, node: &Masgn)
Invoked by a Visitor on entering into Masgn node. Read more
sourcefn on_match_alt(&mut self, node: &MatchAlt)
fn on_match_alt(&mut self, node: &MatchAlt)
Invoked by a Visitor on entering into MatchAlt node. Read more
sourcefn on_match_as(&mut self, node: &MatchAs)
fn on_match_as(&mut self, node: &MatchAs)
Invoked by a Visitor on entering into MatchAs node. Read more
sourcefn on_match_current_line(&mut self, node: &MatchCurrentLine)
fn on_match_current_line(&mut self, node: &MatchCurrentLine)
Invoked by a Visitor on entering into MatchCurrentLine node. Read more
sourcefn on_match_nil_pattern(&mut self, node: &MatchNilPattern)
fn on_match_nil_pattern(&mut self, node: &MatchNilPattern)
Invoked by a Visitor on entering into MatchNilPattern node. Read more
sourcefn on_match_pattern(&mut self, node: &MatchPattern)
fn on_match_pattern(&mut self, node: &MatchPattern)
Invoked by a Visitor on entering into MatchPattern node. Read more
sourcefn on_match_pattern_p(&mut self, node: &MatchPatternP)
fn on_match_pattern_p(&mut self, node: &MatchPatternP)
Invoked by a Visitor on entering into MatchPatternP node. Read more
sourcefn on_match_rest(&mut self, node: &MatchRest)
fn on_match_rest(&mut self, node: &MatchRest)
Invoked by a Visitor on entering into MatchRest node. Read more
sourcefn on_match_var(&mut self, node: &MatchVar)
fn on_match_var(&mut self, node: &MatchVar)
Invoked by a Visitor on entering into MatchVar node. Read more
sourcefn on_match_with_lvasgn(&mut self, node: &MatchWithLvasgn)
fn on_match_with_lvasgn(&mut self, node: &MatchWithLvasgn)
Invoked by a Visitor on entering into MatchWithLvasgn node. Read more
sourcefn on_module(&mut self, node: &Module)
fn on_module(&mut self, node: &Module)
Invoked by a Visitor on entering into Module node. Read more
sourcefn on_nth_ref(&mut self, node: &NthRef)
fn on_nth_ref(&mut self, node: &NthRef)
Invoked by a Visitor on entering into NthRef node. Read more
sourcefn on_numblock(&mut self, node: &Numblock)
fn on_numblock(&mut self, node: &Numblock)
Invoked by a Visitor on entering into Numblock node. Read more
sourcefn on_op_asgn(&mut self, node: &OpAsgn)
fn on_op_asgn(&mut self, node: &OpAsgn)
Invoked by a Visitor on entering into OpAsgn node. Read more
sourcefn on_optarg(&mut self, node: &Optarg)
fn on_optarg(&mut self, node: &Optarg)
Invoked by a Visitor on entering into Optarg node. Read more
sourcefn on_or_asgn(&mut self, node: &OrAsgn)
fn on_or_asgn(&mut self, node: &OrAsgn)
Invoked by a Visitor on entering into OrAsgn node. Read more
sourcefn on_postexe(&mut self, node: &Postexe)
fn on_postexe(&mut self, node: &Postexe)
Invoked by a Visitor on entering into Postexe node. Read more
sourcefn on_preexe(&mut self, node: &Preexe)
fn on_preexe(&mut self, node: &Preexe)
Invoked by a Visitor on entering into Preexe node. Read more
sourcefn on_procarg0(&mut self, node: &Procarg0)
fn on_procarg0(&mut self, node: &Procarg0)
Invoked by a Visitor on entering into Procarg0 node. Read more
sourcefn on_rational(&mut self, node: &Rational)
fn on_rational(&mut self, node: &Rational)
Invoked by a Visitor on entering into Rational node. Read more
sourcefn on_regexp(&mut self, node: &Regexp)
fn on_regexp(&mut self, node: &Regexp)
Invoked by a Visitor on entering into Regexp node. Read more
sourcefn on_reg_opt(&mut self, node: &RegOpt)
fn on_reg_opt(&mut self, node: &RegOpt)
Invoked by a Visitor on entering into RegOpt node. Read more
sourcefn on_rescue(&mut self, node: &Rescue)
fn on_rescue(&mut self, node: &Rescue)
Invoked by a Visitor on entering into Rescue node. Read more
sourcefn on_rescue_body(&mut self, node: &RescueBody)
fn on_rescue_body(&mut self, node: &RescueBody)
Invoked by a Visitor on entering into RescueBody node. Read more
sourcefn on_restarg(&mut self, node: &Restarg)
fn on_restarg(&mut self, node: &Restarg)
Invoked by a Visitor on entering into Restarg node. Read more
sourcefn on_retry(&mut self, node: &Retry)
fn on_retry(&mut self, node: &Retry)
Invoked by a Visitor on entering into Retry node. Read more
sourcefn on_return(&mut self, node: &Return)
fn on_return(&mut self, node: &Return)
Invoked by a Visitor on entering into Return node. Read more
sourcefn on_s_class(&mut self, node: &SClass)
fn on_s_class(&mut self, node: &SClass)
Invoked by a Visitor on entering into SClass node. Read more
sourcefn on_self_(&mut self, node: &Self_)
fn on_self_(&mut self, node: &Self_)
Invoked by a Visitor on entering into Self_ node. Read more
sourcefn on_shadowarg(&mut self, node: &Shadowarg)
fn on_shadowarg(&mut self, node: &Shadowarg)
Invoked by a Visitor on entering into Shadowarg node. Read more
sourcefn on_splat(&mut self, node: &Splat)
fn on_splat(&mut self, node: &Splat)
Invoked by a Visitor on entering into Splat node. Read more
sourcefn on_super(&mut self, node: &Super)
fn on_super(&mut self, node: &Super)
Invoked by a Visitor on entering into Super node. Read more
sourcefn on_undef(&mut self, node: &Undef)
fn on_undef(&mut self, node: &Undef)
Invoked by a Visitor on entering into Undef node. Read more
sourcefn on_unless_guard(&mut self, node: &UnlessGuard)
fn on_unless_guard(&mut self, node: &UnlessGuard)
Invoked by a Visitor on entering into UnlessGuard node. Read more
sourcefn on_until(&mut self, node: &Until)
fn on_until(&mut self, node: &Until)
Invoked by a Visitor on entering into Until node. Read more
sourcefn on_until_post(&mut self, node: &UntilPost)
fn on_until_post(&mut self, node: &UntilPost)
Invoked by a Visitor on entering into UntilPost node. Read more
sourcefn on_while(&mut self, node: &While)
fn on_while(&mut self, node: &While)
Invoked by a Visitor on entering into While node. Read more
sourcefn on_while_post(&mut self, node: &WhilePost)
fn on_while_post(&mut self, node: &WhilePost)
Invoked by a Visitor on entering into WhilePost node. Read more
sourcefn on_x_heredoc(&mut self, node: &XHeredoc)
fn on_x_heredoc(&mut self, node: &XHeredoc)
Invoked by a Visitor on entering into XHeredoc node. Read more
sourcefn on_yield(&mut self, node: &Yield)
fn on_yield(&mut self, node: &Yield)
Invoked by a Visitor on entering into Yield node. Read more
sourcefn on_z_super(&mut self, node: &ZSuper)
fn on_z_super(&mut self, node: &ZSuper)
Invoked by a Visitor on entering into ZSuper node. Read more
Auto Trait Implementations
impl RefUnwindSafe for Finder
impl Send for Finder
impl Sync for Finder
impl Unpin for Finder
impl UnwindSafe for Finder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more