lib-ruby-parser (C++ bindings)  4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
lib_ruby_parser::For Class Reference

Represents a for loop. More...

#include <nodes.hpp>

Public Attributes

Nodeiterator
 Variable that is used in loop, Lvasgn("a") in for a in b; end More...
 
Nodeiteratee
 Collection that is for iteration. Lvar("b") in for a in b; end More...
 
Nodebody
 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
 

Detailed Description

Represents a for loop.

Member Data Documentation

◆ begin_l

Loc lib_ruby_parser::For::begin_l

Location of the do keyword

for a in b do; end
^^

Note: this do is optional, and so begin_l can be None.

◆ body

Node* lib_ruby_parser::For::body

Body of the loop. None if there's no body.

◆ end_l

Loc lib_ruby_parser::For::end_l

Location of the end keyword

for a in b; end
^^^

◆ expression_l

Loc lib_ruby_parser::For::expression_l

Location of the full expression

for a in b; end
^^^^^^^^^^^^^^^

◆ iteratee

Node* lib_ruby_parser::For::iteratee

Collection that is for iteration. Lvar("b") in for a in b; end

◆ iterator

Node* lib_ruby_parser::For::iterator

Variable that is used in loop, Lvasgn("a") in for a in b; end

◆ keyword_l

Loc lib_ruby_parser::For::keyword_l

Location of the for keyword

for a in b; end
^^^

◆ operator_l

Loc lib_ruby_parser::For::operator_l

Location of the in keyword

for a in b; end
^^

The documentation for this class was generated from the following file: