|
lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
#include <nodes.hpp>
Public Attributes | |
| Node * | re |
| Given regex. More... | |
| Loc | expression_l |
Represents implicit matching using if /regex/
Prints "false".
Under the hood this construction matches regex against $_, so the following works:
this code prints "true".
| Loc lib_ruby_parser::MatchCurrentLine::expression_l |
Location of the regex
Technically this location is redundant, but keeping it is the only way to have the same interface for all nodes.
| Node* lib_ruby_parser::MatchCurrentLine::re |
Given regex.