lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
Represents a block of code with ensure
(i.e. begin; ensure; end
)
More...
#include <nodes.hpp>
Public Attributes | |
Node * | body |
Node * | ensure |
Loc | keyword_l |
Loc | expression_l |
Represents a block of code with ensure
(i.e. begin; ensure; end
)
Node* lib_ruby_parser::Ensure::body |
Node* lib_ruby_parser::Ensure::ensure |
Body of the ensure
block
Int("2")
for begin; 1; ensure; 2; end
Loc lib_ruby_parser::Ensure::expression_l |
Location of the full expression
Note: begin/end belong to KwBegin
node.
Loc lib_ruby_parser::Ensure::keyword_l |
Location of the ensure
keyword