Module lib_ruby_parser::nodes [−][src]
Module with all known node types
Structs
| Alias | Represents |
| And | Represents |
| AndAsgn | Represents |
| Arg | Represents a positional required block/method argument. |
| Args | Represents an arguments list |
| Array | Represents an array literal |
| ArrayPattern | Represents an array pattern used in pattern matching |
| ArrayPatternWithTail | Represents an array pattern with trailing comma used in pattern matching |
| BackRef | Represents special global variables:
1. |
| Begin | Represents compound statement (i.e. a multi-statement) |
| Block | Represents a Ruby block that is passed to a method ( |
| BlockPass | Represents a |
| Blockarg | Represents a |
| Break | Represents a |
| CSend | Represents conditional method call using |
| Case | Represents a |
| CaseMatch | Represents a |
| Casgn | Represents a constant assignment (i.e. |
| Cbase | Represents leading |
| Class | Represents a class definition (using a |
| Complex | Represents a |
| Const | Represents constant access (i.e. |
| ConstPattern | Const pattern used in pattern matching (e.g. |
| Cvar | Represents access to class variable (i.e. |
| Cvasgn | Represents class variable assignment (i.e. |
| Def | Represents method definition using |
| Defined | Represents a |
| Defs | Represents a singleton method definition (i.e. |
| Dstr | Represents a string with interpolation (i.e. |
| Dsym | Represents a symbol with interpolation (i.e. |
| EFlipFlop | Represents exclusive flip-flop (i.e. in |
| EmptyElse | Represents a special empty else that is a part of the pattern matching. |
| Encoding | Represents a special |
| Ensure | Represents a block of code with |
| Erange | Represents range literal with excluded |
| False | Represents a |
| File | Represents a special |
| FindPattern | Represents a find pattern using in pattern matching (i.e. |
| Float | Represents a float literal (i.e. |
| For | Represents a |
| ForwardArg | Represents a special |
| ForwardedArgs | Represents a |
| Gvar | Represents access to global variable (i.e. |
| Gvasgn | Represents global variable assignment (i.e. |
| Hash | Represents a hash literal (i.e. |
| HashPattern | Represents a hash pattern used in pattern matching (i.e. |
| Heredoc | Represents a here-document literal (both with and without interpolation) |
| IFlipFlop | Represents inclusive flip-flop (i.e. in |
| If | Represents an |
| IfGuard | Represents an |
| IfMod | Represents an |
| IfTernary | Represents ternary |
| InPattern | Represents an |
| Index | Represents indexing operation (i.e. |
| IndexAsgn | Represents assignment using indexing operation (i.e. |
| Int | Represents an integer literal (i.e. |
| Irange | Represents inclusive range (i.e. |
| Ivar | Represents access to instance variable (i.e. |
| Ivasgn | Represents instance variable assignment (i.e |
| KwBegin | Represents an explicit |
| Kwarg | Represents required keyword argument (i.e. |
| Kwargs | Represents kwargs that are given to a method call, super or yield (i.e. |
| Kwnilarg | Represents an special argument that rejects all keyword arguments (i.e. |
| Kwoptarg | Represents an optional keyword argument (i.e. |
| Kwrestarg | Represents a keyword rest argument (i.e. |
| Kwsplat | Represents a keyword arguments splat (i.e. |
| Lambda | Represents a lambda call using |
| Line | Represents a special |
| Lvar | Represents access to a local variable (i.e. |
| Lvasgn | Represents local variable assignment (i.e. |
| Masgn | Represents mass-assignment (i.e. |
| MatchAlt | Represents pattern matching using one of the given patterns (i.e. |
| MatchAs | Represents matching with renaming into specified local variable (i.e. |
| MatchCurrentLine | Represents implicit matching using |
| MatchNilPattern | Represents empty hash pattern that is used in pattern matching (i.e. |
| MatchPattern | Represents a one-line pattern matching that can throw an error (i.e. |
| MatchPatternP | Represents a one-line pattern matching that never throws but returns true/false (i.e. |
| MatchRest | Represents a wildcard pattern used in pattern matching (i.e. |
| MatchVar | Represents matching with assignment into a local variable (i.e. |
| MatchWithLvasgn | Represents matching a regex that produces local variables (i.e. |
| Mlhs | Represents left hand statement of the mass-assignment (i.e. |
| Module | Represents module declaration using |
| Next | Represents |
| Nil | Represents |
| NthRef | Represents numeric global variable (e.g. |
| Numblock | Represents a block that takes numbered parameters (i.e. |
| OpAsgn | Represents an operation with assignment (e.g. |
| Optarg | Represents optional positional argument (i.e. |
| Or | Represents |
| OrAsgn | Represents |
| Pair | Represents a key/value pair (e.g. a part of the |
| Pin | Represents a pattern based on a “pinned” variable (e.g. |
| Postexe | Represents |
| Preexe | Represents |
| Procarg0 | Represents a sole block argument (e.g. |
| Rational | Represents rational literal (e.g. |
| Redo | Represents |
| RegOpt | Represents flags of the regex literal (i.e. |
| Regexp | Represents regex literal (e.g. |
| Rescue | Represents a |
| RescueBody | Represents a single |
| Restarg | Represents positional rest argument (i.e. |
| Retry | Represents |
| Return | Represents |
| SClass | Represents opening a singleton class (i.e. |
| Self_ | Represents |
| Send | Represents a method call (e.g. |
| Shadowarg | Represents a special block argument that “shadows” outer variable (i.e. |
| Splat | Represents an arguments splat (i.e. |
| Str | Represents a plain non-interpolated string literal (e.g. |
| Super | Represents a |
| Sym | Represents a plain symbol literal (i.e. |
| True | Represents a |
| Undef | Represents an |
| UnlessGuard | Represents an |
| Until | Represents |
| UntilPost | Represents a post-until loop |
| When | Represents a branch of the |
| While | Represents |
| WhilePost | Represents a post-while loop |
| XHeredoc | Represents a executable here-document literal (both with and without interpolation) |
| Xstr | Represents an executable string (i.e. |
| Yield | Represents an |
| ZSuper | Represents a |
Enums
| Node | Generic combination of all known nodes. |