lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
#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 with trailing comma used in pattern matching
It's slightly different from ArrayPattern
, trailing comma at the end works as , *
MaybeLoc lib_ruby_parser::ArrayPatternWithTail::begin_l |
Location of the open bracket
None
for pattern like 1, 2,
without brackets
NodeList lib_ruby_parser::ArrayPatternWithTail::elements |
A list of elements.
MaybeLoc lib_ruby_parser::ArrayPatternWithTail::end_l |
Location of the closing bracket
None
for pattern like 1, 2,
without brackets
Loc lib_ruby_parser::ArrayPatternWithTail::expression_l |
Location of the full expression