lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
Represents a branch of the case
statement (i.e. when foo
)
More...
#include <nodes.hpp>
Public Attributes | |
NodeList | patterns |
A list of values to compare/match against. More... | |
Node * | body |
Body of the when branch. More... | |
Loc | keyword_l |
Loc | begin_l |
Loc | expression_l |
Represents a branch of the case
statement (i.e. when foo
)
Loc lib_ruby_parser::When::begin_l |
Location of the then
keyword
then
is optional, and so begin_l
can be None
Node* lib_ruby_parser::When::body |
Body of the when
branch.
Loc lib_ruby_parser::When::expression_l |
Location of the full expression
Loc lib_ruby_parser::When::keyword_l |
Location of the when
keyword
NodeList lib_ruby_parser::When::patterns |
A list of values to compare/match against.