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