lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
Represents a hash pattern used in pattern matching (i.e. in { a: 1 }
)
More...
#include <nodes.hpp>
Public Attributes | |
NodeList | elements |
A list of inner patterns. More... | |
MaybeLoc | begin_l |
MaybeLoc | end_l |
Loc | expression_l |
Represents a hash pattern used in pattern matching (i.e. in { a: 1 }
)
MaybeLoc lib_ruby_parser::HashPattern::begin_l |
Location of the open parenthesis
None
if there are no parentheses
NodeList lib_ruby_parser::HashPattern::elements |
A list of inner patterns.
MaybeLoc lib_ruby_parser::HashPattern::end_l |
Location of the open parenthesis
None
if there are no parentheses
Loc lib_ruby_parser::HashPattern::expression_l |
Location of the full expression