|
lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
Represents an array pattern used in pattern matching. More...
#include <nodes.hpp>
Public Attributes | |
| NodeList | elements |
| A list of elements. More... | |
| MaybeLoc | begin_l |
| MaybeLoc | end_l |
| Loc | expression_l |
Represents an array pattern used in pattern matching.
| MaybeLoc lib_ruby_parser::ArrayPattern::begin_l |
Location of the open bracket
None for pattern like 1, 2 without brackets
| NodeList lib_ruby_parser::ArrayPattern::elements |
A list of elements.
| MaybeLoc lib_ruby_parser::ArrayPattern::end_l |
Location of the closing bracket
None for pattern like 1, 2 without brackets
| Loc lib_ruby_parser::ArrayPattern::expression_l |
Location of the full expression