lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
Represents while
loop.
More...
#include <nodes.hpp>
Public Attributes | |
Node * | cond |
Condition of the loop. More... | |
Node * | body |
Loc | keyword_l |
MaybeLoc | begin_l |
MaybeLoc | end_l |
Loc | expression_l |
Represents while
loop.
MaybeLoc lib_ruby_parser::While::begin_l |
Location of the do
keyword
do
is optional, and so begin_l
can be None
Node* lib_ruby_parser::While::body |
Body of the loop.
None
if body is empty
Node* lib_ruby_parser::While::cond |
Condition of the loop.
MaybeLoc lib_ruby_parser::While::end_l |
Location of the end
keyword
None
if loop is a modifier (i.e. foo while bar
)
Loc lib_ruby_parser::While::expression_l |
Location of the full expression
Loc lib_ruby_parser::While::keyword_l |
Location of the while
keyword