pub struct Finder { /* private fields */ }
Expand description

A struct to find sub-nodes in AST by by a given Pattern

Implementations

Performs a search of a given pattern on a given AST.

pattern is a string slice that is used to construct a Pattern.

Trait Implementations

Formats the value using the given formatter. Read more

Invoked by a Visitor on entering into Alias node. Read more

Invoked by a Visitor on entering into And node. Read more

Invoked by a Visitor on entering into AndAsgn node. Read more

Invoked by a Visitor on entering into Arg node. Read more

Invoked by a Visitor on entering into Args node. Read more

Invoked by a Visitor on entering into Array node. Read more

Invoked by a Visitor on entering into ArrayPattern node. Read more

Invoked by a Visitor on entering into ArrayPatternWithTail node. Read more

Invoked by a Visitor on entering into BackRef node. Read more

Invoked by a Visitor on entering into Begin node. Read more

Invoked by a Visitor on entering into Block node. Read more

Invoked by a Visitor on entering into Blockarg node. Read more

Invoked by a Visitor on entering into BlockPass node. Read more

Invoked by a Visitor on entering into Break node. Read more

Invoked by a Visitor on entering into Case node. Read more

Invoked by a Visitor on entering into CaseMatch node. Read more

Invoked by a Visitor on entering into Casgn node. Read more

Invoked by a Visitor on entering into Cbase node. Read more

Invoked by a Visitor on entering into Class node. Read more

Invoked by a Visitor on entering into Complex node. Read more

Invoked by a Visitor on entering into Const node. Read more

Invoked by a Visitor on entering into ConstPattern node. Read more

Invoked by a Visitor on entering into CSend node. Read more

Invoked by a Visitor on entering into Cvar node. Read more

Invoked by a Visitor on entering into Cvasgn node. Read more

Invoked by a Visitor on entering into Def node. Read more

Invoked by a Visitor on entering into Defined node. Read more

Invoked by a Visitor on entering into Defs node. Read more

Invoked by a Visitor on entering into Dstr node. Read more

Invoked by a Visitor on entering into Dsym node. Read more

Invoked by a Visitor on entering into EFlipFlop node. Read more

Invoked by a Visitor on entering into EmptyElse node. Read more

Invoked by a Visitor on entering into Encoding node. Read more

Invoked by a Visitor on entering into Ensure node. Read more

Invoked by a Visitor on entering into Erange node. Read more

Invoked by a Visitor on entering into False node. Read more

Invoked by a Visitor on entering into File node. Read more

Invoked by a Visitor on entering into FindPattern node. Read more

Invoked by a Visitor on entering into Float node. Read more

Invoked by a Visitor on entering into For node. Read more

Invoked by a Visitor on entering into ForwardArg node. Read more

Invoked by a Visitor on entering into ForwardedArgs node. Read more

Invoked by a Visitor on entering into Gvar node. Read more

Invoked by a Visitor on entering into Gvasgn node. Read more

Invoked by a Visitor on entering into Hash node. Read more

Invoked by a Visitor on entering into HashPattern node. Read more

Invoked by a Visitor on entering into Heredoc node. Read more

Invoked by a Visitor on entering into If node. Read more

Invoked by a Visitor on entering into IfGuard node. Read more

Invoked by a Visitor on entering into IFlipFlop node. Read more

Invoked by a Visitor on entering into IfMod node. Read more

Invoked by a Visitor on entering into IfTernary node. Read more

Invoked by a Visitor on entering into Index node. Read more

Invoked by a Visitor on entering into IndexAsgn node. Read more

Invoked by a Visitor on entering into InPattern node. Read more

Invoked by a Visitor on entering into Int node. Read more

Invoked by a Visitor on entering into Irange node. Read more

Invoked by a Visitor on entering into Ivar node. Read more

Invoked by a Visitor on entering into Ivasgn node. Read more

Invoked by a Visitor on entering into Kwarg node. Read more

Invoked by a Visitor on entering into Kwargs node. Read more

Invoked by a Visitor on entering into KwBegin node. Read more

Invoked by a Visitor on entering into Kwnilarg node. Read more

Invoked by a Visitor on entering into Kwoptarg node. Read more

Invoked by a Visitor on entering into Kwrestarg node. Read more

Invoked by a Visitor on entering into Kwsplat node. Read more

Invoked by a Visitor on entering into Lambda node. Read more

Invoked by a Visitor on entering into Line node. Read more

Invoked by a Visitor on entering into Lvar node. Read more

Invoked by a Visitor on entering into Lvasgn node. Read more

Invoked by a Visitor on entering into Masgn node. Read more

Invoked by a Visitor on entering into MatchAlt node. Read more

Invoked by a Visitor on entering into MatchAs node. Read more

Invoked by a Visitor on entering into MatchCurrentLine node. Read more

Invoked by a Visitor on entering into MatchNilPattern node. Read more

Invoked by a Visitor on entering into MatchPattern node. Read more

Invoked by a Visitor on entering into MatchPatternP node. Read more

Invoked by a Visitor on entering into MatchRest node. Read more

Invoked by a Visitor on entering into MatchVar node. Read more

Invoked by a Visitor on entering into MatchWithLvasgn node. Read more

Invoked by a Visitor on entering into Mlhs node. Read more

Invoked by a Visitor on entering into Module node. Read more

Invoked by a Visitor on entering into Next node. Read more

Invoked by a Visitor on entering into Nil node. Read more

Invoked by a Visitor on entering into NthRef node. Read more

Invoked by a Visitor on entering into Numblock node. Read more

Invoked by a Visitor on entering into OpAsgn node. Read more

Invoked by a Visitor on entering into Optarg node. Read more

Invoked by a Visitor on entering into Or node. Read more

Invoked by a Visitor on entering into OrAsgn node. Read more

Invoked by a Visitor on entering into Pair node. Read more

Invoked by a Visitor on entering into Pin node. Read more

Invoked by a Visitor on entering into Postexe node. Read more

Invoked by a Visitor on entering into Preexe node. Read more

Invoked by a Visitor on entering into Procarg0 node. Read more

Invoked by a Visitor on entering into Rational node. Read more

Invoked by a Visitor on entering into Redo node. Read more

Invoked by a Visitor on entering into Regexp node. Read more

Invoked by a Visitor on entering into RegOpt node. Read more

Invoked by a Visitor on entering into Rescue node. Read more

Invoked by a Visitor on entering into RescueBody node. Read more

Invoked by a Visitor on entering into Restarg node. Read more

Invoked by a Visitor on entering into Retry node. Read more

Invoked by a Visitor on entering into Return node. Read more

Invoked by a Visitor on entering into SClass node. Read more

Invoked by a Visitor on entering into Self_ node. Read more

Invoked by a Visitor on entering into Send node. Read more

Invoked by a Visitor on entering into Shadowarg node. Read more

Invoked by a Visitor on entering into Splat node. Read more

Invoked by a Visitor on entering into Str node. Read more

Invoked by a Visitor on entering into Super node. Read more

Invoked by a Visitor on entering into Sym node. Read more

Invoked by a Visitor on entering into True node. Read more

Invoked by a Visitor on entering into Undef node. Read more

Invoked by a Visitor on entering into UnlessGuard node. Read more

Invoked by a Visitor on entering into Until node. Read more

source

fn on_until_post(&mut self, node: &UntilPost)

Invoked by a Visitor on entering into UntilPost node. Read more

Invoked by a Visitor on entering into When node. Read more

Invoked by a Visitor on entering into While node. Read more

source

fn on_while_post(&mut self, node: &WhilePost)

Invoked by a Visitor on entering into WhilePost node. Read more

Invoked by a Visitor on entering into XHeredoc node. Read more

Invoked by a Visitor on entering into Xstr node. Read more

Invoked by a Visitor on entering into Yield node. Read more

Invoked by a Visitor on entering into ZSuper node. Read more

Generic visit router that calls on_<type> under the hood

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.