Enum lib_ruby_parser::traverse::visitor::Item [−][src]
pub enum Item {}Show variants
Root, Recv, Lhs, Rhs, Value, MethodCall, Body, Args, Expr, ElseBody, Scope, Name, Superclass, Const, Definee, Iterator, Iteratee, Pattern, Left, Right, IfTrue, IfFalse, Cond, DefaultValue, Ensure, Guard, As, Re, Key, ExcList, ExcVar, Var, Options, To, From, MlhsItems, Arglist, Elements, Stmts, WhenBodies, InBodies, Parts, Indexes, Pairs, RescueBodies, Idx(usize),
Expand description
Enum of all types of parent->child transitions during traversing
Variants
Root transition
Transition into .recv
from:
Send
CSend
Index
IndexAsgn
OpAsgn
OrAsgn
AndAsgn
Transition into .lhs
from:
And
Masgn
MatchAlt
Or
Transition into .rhs
from:
And
Masgn
MatchAlt
Or
Transition into .value
from:
AndAsgn
BlockPass
Casgn
Cvasgn
Defined
Gvasgn
MatchPattern
MatchPattern
IndexAsgn
Ivasgn
Kwsplat
Lvasgn
MatchAs
MatchWithLvasgn
OpAsgn
OrAsgn
Pair
Splat
Transitions into .call
from:
Block
Numblock
Transitions into .body
from:
Block
Class
Def
Defs
Ensure
For
InPattern
Module
Numblock
Postexe
Preexe
Rescue
RescueBody
Sclass
Until
UntilPost
When
While
WhilePost
Transitions into .args
from:
Block
Break
Csend
Def
Defs
Next
Return
Send
Super
Undef
When
Yield
Transitions into .expr
from:
Case
CaseMatch
Sclass
Transitions into .else_body
from:
Case
CaseMatch
Rescue
Transitions into .scope
from:
Casgn
Const
Transitions into .name
from:
Class
MatchRest
Module
Transitions into .superclass
from:
Class
Transitions into .const
from:
ConstPattern
Transitions into .definee
from:
Defs
Transitions into .iterator
from:
For
Transitions into .iteratee
from:
For
Transitions into .pattern
from:
ConstPattern
MatchPattern
MatchPatternP
InPattern
Transitions into .left
from:
EFlipFlop
Erange
IFlipFlop
Irange
Transitions into .right
from:
EFlipFlop
Erange
IFlipFlop
Irange
Transitions into .if_true
from:
If
IfMod
IfTernary
Transitions into .if_false
from:
If
IfMod
IfTernary
Transitions into .cond
from:
If
IfGuard
IfMod
IfTernary
UnlessGuard
Until
UntilPost
While
WhilePost
Transitions into .default
from:
Kwoptarg
Optarg
Transitions into .ensure
from:
Ensure
Transitions into .guard
from:
InPattern
Transitions into .as
from:
MatchAs
Transitions into .re
from:
MatchCurrentLine
MatchWithLvasgn
Transitions into .key
from:
Pair
Transitions into .exc_list
from:
RescueBody
Transitions into .exc_var
from:
RescueBody
Transitions into .var
from:
Pin
Transitions into .options
from:
Regexp
Transitions into .to
from:
Alias
Transitions into .from
from:
Alias
Transitions into .items
from:
Mlhs
Transitions into .args
from:
Args
Procarg0
Transitions into .elements
from:
Array
ArrayPattern
ArrayPatternWithTail
FindPattern
HashPattern
Transitions into .statements
from:
Begin
KwBegin
Transitions into .whn_bodies
from:
Case
Transitions into .in_bodies
from:
CaseMatch
Transitions into .parts
from:
Dstr
Dsym
Heredoc
Regexp
XHeredoc
Xstr
Transitions into .indexes
from:
Index
IndexAsgn
Transitions into .pairs
from:
Hash
Kwargs
Transitions into .rescue_bodies
from:
Rescue
Idx(usize)
Transitions into any element of `Vec
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Item
impl UnwindSafe for Item
Blanket Implementations
Mutably borrows from an owned value. Read more