Enum lib_ruby_parser::nodes::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

Arg(Arg)

Tuple Fields

0: Arg

Args(Args)

Tuple Fields

0: Args

Array(Array)

Tuple Fields

0: Array

ArrayPattern(ArrayPattern)

Tuple Fields

ArrayPatternWithTail(ArrayPatternWithTail)

Tuple Fields

BackRef(BackRef)

Tuple Fields

Begin(Begin)

Tuple Fields

0: Begin

Block(Block)

Tuple Fields

0: Block

Blockarg(Blockarg)

Tuple Fields

BlockPass(BlockPass)

Tuple Fields

Break(Break)

Tuple Fields

0: Break

Case(Case)

Tuple Fields

0: Case

CaseMatch(CaseMatch)

Tuple Fields

Casgn(Casgn)

Tuple Fields

0: Casgn

Cbase(Cbase)

Tuple Fields

0: Cbase

Class(Class)

Tuple Fields

0: Class

Complex(Complex)

Tuple Fields

Const(Const)

Tuple Fields

0: Const

ConstPattern(ConstPattern)

Tuple Fields

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

Defs(Defs)

Tuple Fields

0: Defs

Dstr(Dstr)

Tuple Fields

0: Dstr

Dsym(Dsym)

Tuple Fields

0: Dsym

EFlipFlop(EFlipFlop)

Tuple Fields

EmptyElse(EmptyElse)

Tuple Fields

Encoding(Encoding)

Tuple Fields

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

Float(Float)

Tuple Fields

0: Float

For(For)

Tuple Fields

0: For

ForwardArg(ForwardArg)

Tuple Fields

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

Heredoc(Heredoc)

Tuple Fields

If(If)

Tuple Fields

0: If

IfGuard(IfGuard)

Tuple Fields

IFlipFlop(IFlipFlop)

Tuple Fields

IfMod(IfMod)

Tuple Fields

0: IfMod

IfTernary(IfTernary)

Tuple Fields

Index(Index)

Tuple Fields

0: Index

IndexAsgn(IndexAsgn)

Tuple Fields

InPattern(InPattern)

Tuple Fields

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

Kwnilarg(Kwnilarg)

Tuple Fields

Kwoptarg(Kwoptarg)

Tuple Fields

Kwrestarg(Kwrestarg)

Tuple Fields

Kwsplat(Kwsplat)

Tuple Fields

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

MatchAs(MatchAs)

Tuple Fields

MatchCurrentLine(MatchCurrentLine)

Tuple Fields

MatchNilPattern(MatchNilPattern)

Tuple Fields

MatchPattern(MatchPattern)

Tuple Fields

MatchPatternP(MatchPatternP)

Tuple Fields

MatchRest(MatchRest)

Tuple Fields

MatchVar(MatchVar)

Tuple Fields

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

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

Preexe(Preexe)

Tuple Fields

0: Preexe

Procarg0(Procarg0)

Tuple Fields

Rational(Rational)

Tuple Fields

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

Restarg(Restarg)

Tuple Fields

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

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

Until(Until)

Tuple Fields

0: Until

UntilPost(UntilPost)

Tuple Fields

When(When)

Tuple Fields

0: When

While(While)

Tuple Fields

0: While

WhilePost(WhilePost)

Tuple Fields

XHeredoc(XHeredoc)

Tuple Fields

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.