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: AliasAnd(And)
Tuple Fields
0: AndAndAsgn(AndAsgn)
Tuple Fields
0: AndAsgnArg(Arg)
Tuple Fields
0: ArgArgs(Args)
Tuple Fields
0: ArgsArray(Array)
Tuple Fields
0: ArrayArrayPattern(ArrayPattern)
Tuple Fields
0: ArrayPatternArrayPatternWithTail(ArrayPatternWithTail)
Tuple Fields
BackRef(BackRef)
Tuple Fields
0: BackRefBegin(Begin)
Tuple Fields
0: BeginBlock(Block)
Tuple Fields
0: BlockBlockarg(Blockarg)
Tuple Fields
0: BlockargBlockPass(BlockPass)
Tuple Fields
0: BlockPassBreak(Break)
Tuple Fields
0: BreakCase(Case)
Tuple Fields
0: CaseCaseMatch(CaseMatch)
Tuple Fields
0: CaseMatchCasgn(Casgn)
Tuple Fields
0: CasgnCbase(Cbase)
Tuple Fields
0: CbaseClass(Class)
Tuple Fields
0: ClassComplex(Complex)
Tuple Fields
0: ComplexConst(Const)
Tuple Fields
0: ConstConstPattern(ConstPattern)
Tuple Fields
0: ConstPatternCSend(CSend)
Tuple Fields
0: CSendCvar(Cvar)
Tuple Fields
0: CvarCvasgn(Cvasgn)
Tuple Fields
0: CvasgnDef(Def)
Tuple Fields
0: DefDefined(Defined)
Tuple Fields
0: DefinedDefs(Defs)
Tuple Fields
0: DefsDstr(Dstr)
Tuple Fields
0: DstrDsym(Dsym)
Tuple Fields
0: DsymEFlipFlop(EFlipFlop)
Tuple Fields
0: EFlipFlopEmptyElse(EmptyElse)
Tuple Fields
0: EmptyElseEncoding(Encoding)
Tuple Fields
0: EncodingEnsure(Ensure)
Tuple Fields
0: EnsureErange(Erange)
Tuple Fields
0: ErangeFalse(False)
Tuple Fields
0: FalseFile(File)
Tuple Fields
0: FileFindPattern(FindPattern)
Tuple Fields
0: FindPatternFloat(Float)
Tuple Fields
0: FloatFor(For)
Tuple Fields
0: ForForwardArg(ForwardArg)
Tuple Fields
0: ForwardArgForwardedArgs(ForwardedArgs)
Tuple Fields
Gvar(Gvar)
Tuple Fields
0: GvarGvasgn(Gvasgn)
Tuple Fields
0: GvasgnHash(Hash)
Tuple Fields
0: HashHashPattern(HashPattern)
Tuple Fields
0: HashPatternHeredoc(Heredoc)
Tuple Fields
0: HeredocIf(If)
Tuple Fields
0: IfIfGuard(IfGuard)
Tuple Fields
0: IfGuardIFlipFlop(IFlipFlop)
Tuple Fields
0: IFlipFlopIfMod(IfMod)
Tuple Fields
0: IfModIfTernary(IfTernary)
Tuple Fields
0: IfTernaryIndex(Index)
Tuple Fields
0: IndexIndexAsgn(IndexAsgn)
Tuple Fields
0: IndexAsgnInPattern(InPattern)
Tuple Fields
0: InPatternInt(Int)
Tuple Fields
0: IntIrange(Irange)
Tuple Fields
0: IrangeIvar(Ivar)
Tuple Fields
0: IvarIvasgn(Ivasgn)
Tuple Fields
0: IvasgnKwarg(Kwarg)
Tuple Fields
0: KwargKwargs(Kwargs)
Tuple Fields
0: KwargsKwBegin(KwBegin)
Tuple Fields
0: KwBeginKwnilarg(Kwnilarg)
Tuple Fields
0: KwnilargKwoptarg(Kwoptarg)
Tuple Fields
0: KwoptargKwrestarg(Kwrestarg)
Tuple Fields
0: KwrestargKwsplat(Kwsplat)
Tuple Fields
0: KwsplatLambda(Lambda)
Tuple Fields
0: LambdaLine(Line)
Tuple Fields
0: LineLvar(Lvar)
Tuple Fields
0: LvarLvasgn(Lvasgn)
Tuple Fields
0: LvasgnMasgn(Masgn)
Tuple Fields
0: MasgnMatchAlt(MatchAlt)
Tuple Fields
0: MatchAltMatchAs(MatchAs)
Tuple Fields
0: MatchAsMatchCurrentLine(MatchCurrentLine)
Tuple Fields
MatchNilPattern(MatchNilPattern)
Tuple Fields
MatchPattern(MatchPattern)
Tuple Fields
0: MatchPatternMatchPatternP(MatchPatternP)
Tuple Fields
MatchRest(MatchRest)
Tuple Fields
0: MatchRestMatchVar(MatchVar)
Tuple Fields
0: MatchVarMatchWithLvasgn(MatchWithLvasgn)
Tuple Fields
Mlhs(Mlhs)
Tuple Fields
0: MlhsModule(Module)
Tuple Fields
0: ModuleNext(Next)
Tuple Fields
0: NextNil(Nil)
Tuple Fields
0: NilNthRef(NthRef)
Tuple Fields
0: NthRefNumblock(Numblock)
Tuple Fields
0: NumblockOpAsgn(OpAsgn)
Tuple Fields
0: OpAsgnOptarg(Optarg)
Tuple Fields
0: OptargOr(Or)
Tuple Fields
0: OrOrAsgn(OrAsgn)
Tuple Fields
0: OrAsgnPair(Pair)
Tuple Fields
0: PairPin(Pin)
Tuple Fields
0: PinPostexe(Postexe)
Tuple Fields
0: PostexePreexe(Preexe)
Tuple Fields
0: PreexeProcarg0(Procarg0)
Tuple Fields
0: Procarg0Rational(Rational)
Tuple Fields
0: RationalRedo(Redo)
Tuple Fields
0: RedoRegexp(Regexp)
Tuple Fields
0: RegexpRegOpt(RegOpt)
Tuple Fields
0: RegOptRescue(Rescue)
Tuple Fields
0: RescueRescueBody(RescueBody)
Tuple Fields
0: RescueBodyRestarg(Restarg)
Tuple Fields
0: RestargRetry(Retry)
Tuple Fields
0: RetryReturn(Return)
Tuple Fields
0: ReturnSClass(SClass)
Tuple Fields
0: SClassSelf_(Self_)
Tuple Fields
0: Self_Send(Send)
Tuple Fields
0: SendShadowarg(Shadowarg)
Tuple Fields
0: ShadowargSplat(Splat)
Tuple Fields
0: SplatStr(Str)
Tuple Fields
0: StrSuper(Super)
Tuple Fields
0: SuperSym(Sym)
Tuple Fields
0: SymTrue(True)
Tuple Fields
0: TrueUndef(Undef)
Tuple Fields
0: UndefUnlessGuard(UnlessGuard)
Tuple Fields
0: UnlessGuardUntil(Until)
Tuple Fields
0: UntilUntilPost(UntilPost)
Tuple Fields
0: UntilPostWhen(When)
Tuple Fields
0: WhenWhile(While)
Tuple Fields
0: WhileWhilePost(WhilePost)
Tuple Fields
0: WhilePostXHeredoc(XHeredoc)
Tuple Fields
0: XHeredocXstr(Xstr)
Tuple Fields
0: XstrYield(Yield)
Tuple Fields
0: YieldZSuper(ZSuper)
Tuple Fields
0: ZSuperImplementations
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
