|
lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
Represents an in pattern branch of the pattern matching.
More...
#include <nodes.hpp>
Public Attributes | |
| Node * | pattern |
| Value that is used for matching. More... | |
| Node * | guard |
| Node * | body |
| Body of the branch that is invoked if value matches pattern. More... | |
| Loc | keyword_l |
| Loc | begin_l |
| Loc | expression_l |
Represents an in pattern branch of the pattern matching.
| Loc lib_ruby_parser::InPattern::begin_l |
Location of the then keyword
| Node* lib_ruby_parser::InPattern::body |
Body of the branch that is invoked if value matches pattern.
| Loc lib_ruby_parser::InPattern::expression_l |
Location of the full expression
| Node* lib_ruby_parser::InPattern::guard |
Guard that is used for matching
Optional, so can be None
| Loc lib_ruby_parser::InPattern::keyword_l |
Location of the in keyword
| Node* lib_ruby_parser::InPattern::pattern |
Value that is used for matching.