lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
Const pattern used in pattern matching (e.g. in A(1, 2)
)
More...
#include <nodes.hpp>
Public Attributes | |
Node * | const_ |
Constant that is used, Const("Foo") for in For(42) More... | |
Node * | pattern |
Loc | begin_l |
Loc | end_l |
Loc | expression_l |
Const pattern used in pattern matching (e.g. in A(1, 2)
)
Loc lib_ruby_parser::ConstPattern::begin_l |
Location of the open parenthesis
Loc lib_ruby_parser::ConstPattern::end_l |
Location of the closing parenthesis
Loc lib_ruby_parser::ConstPattern::expression_l |
Location of the full expression
Node* lib_ruby_parser::ConstPattern::pattern |
Inner part of the constant pattern
ArrayPattern(vec![ Int("1") ])
for Foo(1)