Enum lib_ruby_parser::Node [−][src]
#[repr(C)]
pub enum Node {
Show 124 variants
Alias(Alias),
And(And),
AndAsgn(AndAsgn),
Arg(Arg),
Args(Args),
Array(Array),
ArrayPattern(ArrayPattern),
ArrayPatternWithTail(ArrayPatternWithTail),
BackRef(BackRef),
Begin(Begin),
Block(Block),
Blockarg(Blockarg),
BlockPass(BlockPass),
Break(Break),
Case(Case),
CaseMatch(CaseMatch),
Casgn(Casgn),
Cbase(Cbase),
Class(Class),
Complex(Complex),
Const(Const),
ConstPattern(ConstPattern),
CSend(CSend),
Cvar(Cvar),
Cvasgn(Cvasgn),
Def(Def),
Defined(Defined),
Defs(Defs),
Dstr(Dstr),
Dsym(Dsym),
EFlipFlop(EFlipFlop),
EmptyElse(EmptyElse),
Encoding(Encoding),
Ensure(Ensure),
Erange(Erange),
False(False),
File(File),
FindPattern(FindPattern),
Float(Float),
For(For),
ForwardArg(ForwardArg),
ForwardedArgs(ForwardedArgs),
Gvar(Gvar),
Gvasgn(Gvasgn),
Hash(Hash),
HashPattern(HashPattern),
Heredoc(Heredoc),
If(If),
IfGuard(IfGuard),
IFlipFlop(IFlipFlop),
IfMod(IfMod),
IfTernary(IfTernary),
Index(Index),
IndexAsgn(IndexAsgn),
InPattern(InPattern),
Int(Int),
Irange(Irange),
Ivar(Ivar),
Ivasgn(Ivasgn),
Kwarg(Kwarg),
Kwargs(Kwargs),
KwBegin(KwBegin),
Kwnilarg(Kwnilarg),
Kwoptarg(Kwoptarg),
Kwrestarg(Kwrestarg),
Kwsplat(Kwsplat),
Lambda(Lambda),
Line(Line),
Lvar(Lvar),
Lvasgn(Lvasgn),
Masgn(Masgn),
MatchAlt(MatchAlt),
MatchAs(MatchAs),
MatchCurrentLine(MatchCurrentLine),
MatchNilPattern(MatchNilPattern),
MatchPattern(MatchPattern),
MatchPatternP(MatchPatternP),
MatchRest(MatchRest),
MatchVar(MatchVar),
MatchWithLvasgn(MatchWithLvasgn),
Mlhs(Mlhs),
Module(Module),
Next(Next),
Nil(Nil),
NthRef(NthRef),
Numblock(Numblock),
OpAsgn(OpAsgn),
Optarg(Optarg),
Or(Or),
OrAsgn(OrAsgn),
Pair(Pair),
Pin(Pin),
Postexe(Postexe),
Preexe(Preexe),
Procarg0(Procarg0),
Rational(Rational),
Redo(Redo),
Regexp(Regexp),
RegOpt(RegOpt),
Rescue(Rescue),
RescueBody(RescueBody),
Restarg(Restarg),
Retry(Retry),
Return(Return),
SClass(SClass),
Self_(Self_),
Send(Send),
Shadowarg(Shadowarg),
Splat(Splat),
Str(Str),
Super(Super),
Sym(Sym),
True(True),
Undef(Undef),
UnlessGuard(UnlessGuard),
Until(Until),
UntilPost(UntilPost),
When(When),
While(While),
WhilePost(WhilePost),
XHeredoc(XHeredoc),
Xstr(Xstr),
Yield(Yield),
ZSuper(ZSuper),
}
Expand description
Generic combination of all known nodes.
Variants
Alias(Alias)
Tuple Fields
0: Alias
And(And)
Tuple Fields
0: And
AndAsgn(AndAsgn)
Tuple Fields
0: AndAsgn
Arg(Arg)
Tuple Fields
0: Arg
Args(Args)
Tuple Fields
0: Args
Array(Array)
Tuple Fields
0: Array
ArrayPattern(ArrayPattern)
Tuple Fields
0: ArrayPattern
ArrayPatternWithTail(ArrayPatternWithTail)
Tuple Fields
BackRef(BackRef)
Tuple Fields
0: BackRef
Begin(Begin)
Tuple Fields
0: Begin
Block(Block)
Tuple Fields
0: Block
Blockarg(Blockarg)
Tuple Fields
0: Blockarg
BlockPass(BlockPass)
Tuple Fields
0: BlockPass
Break(Break)
Tuple Fields
0: Break
Case(Case)
Tuple Fields
0: Case
CaseMatch(CaseMatch)
Tuple Fields
0: CaseMatch
Casgn(Casgn)
Tuple Fields
0: Casgn
Cbase(Cbase)
Tuple Fields
0: Cbase
Class(Class)
Tuple Fields
0: Class
Complex(Complex)
Tuple Fields
0: Complex
Const(Const)
Tuple Fields
0: Const
ConstPattern(ConstPattern)
Tuple Fields
0: ConstPattern
CSend(CSend)
Tuple Fields
0: CSend
Cvar(Cvar)
Tuple Fields
0: Cvar
Cvasgn(Cvasgn)
Tuple Fields
0: Cvasgn
Def(Def)
Tuple Fields
0: Def
Defined(Defined)
Tuple Fields
0: Defined
Defs(Defs)
Tuple Fields
0: Defs
Dstr(Dstr)
Tuple Fields
0: Dstr
Dsym(Dsym)
Tuple Fields
0: Dsym
EFlipFlop(EFlipFlop)
Tuple Fields
0: EFlipFlop
EmptyElse(EmptyElse)
Tuple Fields
0: EmptyElse
Encoding(Encoding)
Tuple Fields
0: Encoding
Ensure(Ensure)
Tuple Fields
0: Ensure
Erange(Erange)
Tuple Fields
0: Erange
False(False)
Tuple Fields
0: False
File(File)
Tuple Fields
0: File
FindPattern(FindPattern)
Tuple Fields
0: FindPattern
Float(Float)
Tuple Fields
0: Float
For(For)
Tuple Fields
0: For
ForwardArg(ForwardArg)
Tuple Fields
0: ForwardArg
ForwardedArgs(ForwardedArgs)
Tuple Fields
Gvar(Gvar)
Tuple Fields
0: Gvar
Gvasgn(Gvasgn)
Tuple Fields
0: Gvasgn
Hash(Hash)
Tuple Fields
0: Hash
HashPattern(HashPattern)
Tuple Fields
0: HashPattern
Heredoc(Heredoc)
Tuple Fields
0: Heredoc
If(If)
Tuple Fields
0: If
IfGuard(IfGuard)
Tuple Fields
0: IfGuard
IFlipFlop(IFlipFlop)
Tuple Fields
0: IFlipFlop
IfMod(IfMod)
Tuple Fields
0: IfMod
IfTernary(IfTernary)
Tuple Fields
0: IfTernary
Index(Index)
Tuple Fields
0: Index
IndexAsgn(IndexAsgn)
Tuple Fields
0: IndexAsgn
InPattern(InPattern)
Tuple Fields
0: InPattern
Int(Int)
Tuple Fields
0: Int
Irange(Irange)
Tuple Fields
0: Irange
Ivar(Ivar)
Tuple Fields
0: Ivar
Ivasgn(Ivasgn)
Tuple Fields
0: Ivasgn
Kwarg(Kwarg)
Tuple Fields
0: Kwarg
Kwargs(Kwargs)
Tuple Fields
0: Kwargs
KwBegin(KwBegin)
Tuple Fields
0: KwBegin
Kwnilarg(Kwnilarg)
Tuple Fields
0: Kwnilarg
Kwoptarg(Kwoptarg)
Tuple Fields
0: Kwoptarg
Kwrestarg(Kwrestarg)
Tuple Fields
0: Kwrestarg
Kwsplat(Kwsplat)
Tuple Fields
0: Kwsplat
Lambda(Lambda)
Tuple Fields
0: Lambda
Line(Line)
Tuple Fields
0: Line
Lvar(Lvar)
Tuple Fields
0: Lvar
Lvasgn(Lvasgn)
Tuple Fields
0: Lvasgn
Masgn(Masgn)
Tuple Fields
0: Masgn
MatchAlt(MatchAlt)
Tuple Fields
0: MatchAlt
MatchAs(MatchAs)
Tuple Fields
0: MatchAs
MatchCurrentLine(MatchCurrentLine)
Tuple Fields
MatchNilPattern(MatchNilPattern)
Tuple Fields
MatchPattern(MatchPattern)
Tuple Fields
0: MatchPattern
MatchPatternP(MatchPatternP)
Tuple Fields
MatchRest(MatchRest)
Tuple Fields
0: MatchRest
MatchVar(MatchVar)
Tuple Fields
0: MatchVar
MatchWithLvasgn(MatchWithLvasgn)
Tuple Fields
Mlhs(Mlhs)
Tuple Fields
0: Mlhs
Module(Module)
Tuple Fields
0: Module
Next(Next)
Tuple Fields
0: Next
Nil(Nil)
Tuple Fields
0: Nil
NthRef(NthRef)
Tuple Fields
0: NthRef
Numblock(Numblock)
Tuple Fields
0: Numblock
OpAsgn(OpAsgn)
Tuple Fields
0: OpAsgn
Optarg(Optarg)
Tuple Fields
0: Optarg
Or(Or)
Tuple Fields
0: Or
OrAsgn(OrAsgn)
Tuple Fields
0: OrAsgn
Pair(Pair)
Tuple Fields
0: Pair
Pin(Pin)
Tuple Fields
0: Pin
Postexe(Postexe)
Tuple Fields
0: Postexe
Preexe(Preexe)
Tuple Fields
0: Preexe
Procarg0(Procarg0)
Tuple Fields
0: Procarg0
Rational(Rational)
Tuple Fields
0: Rational
Redo(Redo)
Tuple Fields
0: Redo
Regexp(Regexp)
Tuple Fields
0: Regexp
RegOpt(RegOpt)
Tuple Fields
0: RegOpt
Rescue(Rescue)
Tuple Fields
0: Rescue
RescueBody(RescueBody)
Tuple Fields
0: RescueBody
Restarg(Restarg)
Tuple Fields
0: Restarg
Retry(Retry)
Tuple Fields
0: Retry
Return(Return)
Tuple Fields
0: Return
SClass(SClass)
Tuple Fields
0: SClass
Self_(Self_)
Tuple Fields
0: Self_
Send(Send)
Tuple Fields
0: Send
Shadowarg(Shadowarg)
Tuple Fields
0: Shadowarg
Splat(Splat)
Tuple Fields
0: Splat
Str(Str)
Tuple Fields
0: Str
Super(Super)
Tuple Fields
0: Super
Sym(Sym)
Tuple Fields
0: Sym
True(True)
Tuple Fields
0: True
Undef(Undef)
Tuple Fields
0: Undef
UnlessGuard(UnlessGuard)
Tuple Fields
0: UnlessGuard
Until(Until)
Tuple Fields
0: Until
UntilPost(UntilPost)
Tuple Fields
0: UntilPost
When(When)
Tuple Fields
0: When
While(While)
Tuple Fields
0: While
WhilePost(WhilePost)
Tuple Fields
0: WhilePost
XHeredoc(XHeredoc)
Tuple Fields
0: XHeredoc
Xstr(Xstr)
Tuple Fields
0: Xstr
Yield(Yield)
Tuple Fields
0: Yield
ZSuper(ZSuper)
Tuple Fields
0: ZSuper
Implementations
Returs a whitequark/parser -like representation of self
.
Used in tests and example scripts
Returns location of the full node expression
Returns a whitequark/parser -like node name.
Used in tests and example scripts
Prints itself + location information
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Node
impl UnwindSafe for Node
Blanket Implementations
Mutably borrows from an owned value. Read more