|
lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
Represents a single rescue handler (i.e. rescue E => e ...)
More...
#include <nodes.hpp>
Public Attributes | |
| Node * | exc_list |
| Node * | exc_var |
| Node * | body |
| Body of the handler. More... | |
| Loc | keyword_l |
| MaybeLoc | assoc_l |
| MaybeLoc | begin_l |
| Loc | expression_l |
Represents a single rescue handler (i.e. rescue E => e ...)
| MaybeLoc lib_ruby_parser::RescueBody::assoc_l |
Location of the => operator
None if exception is not captured.
| MaybeLoc lib_ruby_parser::RescueBody::begin_l |
Location of the then keyword
then is optional, so begin_l can be None
| Node* lib_ruby_parser::RescueBody::body |
Body of the handler.
| Node* lib_ruby_parser::RescueBody::exc_list |
A list of exception classes
None if no classes specified (i.e. rescue => e; ... or just rescue; ...)
| Node* lib_ruby_parser::RescueBody::exc_var |
Variable that captures exception
None if no variable specified (i.e. rescue E; ... or just rescue; ...)
| Loc lib_ruby_parser::RescueBody::expression_l |
Location of the full expression
| Loc lib_ruby_parser::RescueBody::keyword_l |
Location of the rescue keyword