lib-ruby-parser (C++ bindings)  4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
lib_ruby_parser::Begin 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 compound statement (i.e. a multi-statement)

Basically all blocks of code are wrapped into Begin node (e.g. method/block body, rescue/ensure handler etc)

Member Data Documentation

◆ begin_l

MaybeLoc lib_ruby_parser::Begin::begin_l

Begin of the block

(1; 2)
^

None if the block of code is "implicit", like

if true; 1; 2; end

◆ end_l

MaybeLoc lib_ruby_parser::Begin::end_l

End of the block

(1; 2)
^

None if the block of code is "implicit", like

if true; 1; 2; end

◆ expression_l

Loc lib_ruby_parser::Begin::expression_l

Location of the full expression

(1; 2)
^^^^^^

◆ statements

NodeList lib_ruby_parser::Begin::statements

A list of statements.


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