|
lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
Represents a for loop.
More...
#include <nodes.hpp>
Public Attributes | |
| Node * | iterator |
Variable that is used in loop, Lvasgn("a") in for a in b; end More... | |
| Node * | iteratee |
Collection that is for iteration. Lvar("b") in for a in b; end More... | |
| Node * | body |
Body of the loop. None if there's no body. More... | |
| Loc | keyword_l |
| Loc | operator_l |
| Loc | begin_l |
| Loc | end_l |
| Loc | expression_l |
Represents a for loop.
| Loc lib_ruby_parser::For::begin_l |
Location of the do keyword
Note: this do is optional, and so begin_l can be None.
| Node* lib_ruby_parser::For::body |
Body of the loop. None if there's no body.
| Loc lib_ruby_parser::For::end_l |
Location of the end keyword
| Loc lib_ruby_parser::For::expression_l |
Location of the full expression
| Loc lib_ruby_parser::For::keyword_l |
Location of the for keyword
| Loc lib_ruby_parser::For::operator_l |
Location of the in keyword