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

Represents until loop. More...

#include <nodes.hpp>

Public Attributes

Nodecond
 Condition of the loop. More...
 
Nodebody
 
Loc keyword_l
 
MaybeLoc begin_l
 
MaybeLoc end_l
 
Loc expression_l
 

Detailed Description

Represents until loop.

Member Data Documentation

◆ begin_l

MaybeLoc lib_ruby_parser::Until::begin_l

Location of the do keyword

until cond do; foo; end
^^

do is optional, and so begin_l can be None

◆ body

Node* lib_ruby_parser::Until::body

Body of the loop.

None if body is empty

◆ cond

Node* lib_ruby_parser::Until::cond

Condition of the loop.

◆ end_l

MaybeLoc lib_ruby_parser::Until::end_l

Location of the end keyword

until cond do; foo; end
^^^

None if loop is a modifier (i.e. foo until bar)

◆ expression_l

Loc lib_ruby_parser::Until::expression_l

Location of the full expression

until cond do; foo; end
^^^^^^^^^^^^^^^^^^^^^^^
foo until bar
^^^^^^^^^^^^^

◆ keyword_l

Loc lib_ruby_parser::Until::keyword_l

Location of the until keyword

until cond do; foo; end
^^^^^

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