lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
Represents a case
statement used for pattern matching (for regular case
see Case
node)
More...
#include <nodes.hpp>
Public Attributes | |
Node * | expr |
NodeList | in_bodies |
A list of InPattern nodes (each has pattern , guard and body ) More... | |
Node * | else_body |
Body of the else branch, None if there's no else branch. More... | |
Loc | keyword_l |
MaybeLoc | else_l |
Loc | end_l |
Loc | expression_l |
Represents a case
statement used for pattern matching (for regular case
see Case
node)
Node* lib_ruby_parser::CaseMatch::else_body |
Body of the else
branch, None
if there's no else
branch.
MaybeLoc lib_ruby_parser::CaseMatch::else_l |
Location of the else
keyword
None
if there's no else
branch
Loc lib_ruby_parser::CaseMatch::end_l |
Location of the end
keyword
Node* lib_ruby_parser::CaseMatch::expr |
Expression given to case
, Int("1")
for case 1; in 1; end
None
for code like
Loc lib_ruby_parser::CaseMatch::expression_l |
Location of the full expression
NodeList lib_ruby_parser::CaseMatch::in_bodies |
A list of InPattern
nodes (each has pattern
, guard
and body
)
Loc lib_ruby_parser::CaseMatch::keyword_l |
Location of the case
keyword