lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
#include <nodes.hpp>
Public Attributes | |
NodeList | statements |
A list of statements. More... | |
MaybeLoc | begin_l |
MaybeLoc | end_l |
Loc | expression_l |
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)
MaybeLoc lib_ruby_parser::Begin::begin_l |
MaybeLoc lib_ruby_parser::Begin::end_l |
End of the block
None
if the block of code is "implicit", like
Loc lib_ruby_parser::Begin::expression_l |
Location of the full expression
NodeList lib_ruby_parser::Begin::statements |
A list of statements.