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

#include <nodes.hpp>

Public Attributes

NodeList statements
 A list of statements. More...
 
MaybeLoc begin_l
 
MaybeLoc end_l
 
Loc expression_l
 

Detailed Description

Represents an explicit begin; end block.

The reason why it's different is that

begin; foo; end while cond

is a post-while loop (same with post-until loop)

Member Data Documentation

◆ begin_l

MaybeLoc lib_ruby_parser::KwBegin::begin_l

Location of the begin keyword

begin; foo; end
^^^^^

◆ end_l

MaybeLoc lib_ruby_parser::KwBegin::end_l

Location of the end keyword

begin; foo; end
^^^

◆ expression_l

Loc lib_ruby_parser::KwBegin::expression_l

Location of the full expression

begin; foo; bar
^^^^^^^^^^^^^^^

◆ statements

NodeList lib_ruby_parser::KwBegin::statements

A list of statements.


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