lib-ruby-parser (C++ bindings)  4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
lib_ruby_parser::MatchWithLvasgn Class Reference

#include <nodes.hpp>

Public Attributes

Nodere
 Regex that is used for matching. More...
 
Nodevalue
 Value that is used for matching. More...
 
Loc operator_l
 
Loc expression_l
 

Detailed Description

Represents matching a regex that produces local variables (i.e. ‘/(?<match>bar)/ =~ 'bar’`)

Each named group in regex declares a local variable.

Member Data Documentation

◆ expression_l

Loc lib_ruby_parser::MatchWithLvasgn::expression_l

Location of the full expression

/(?<match>bar)/ =^ 'bar'
^^^^^^^^^^^^^^^^^^^^^^^^

◆ operator_l

Loc lib_ruby_parser::MatchWithLvasgn::operator_l

Location of the =^ operatir

/(?<match>bar)/ =^ 'bar'
^^

◆ re

Node* lib_ruby_parser::MatchWithLvasgn::re

Regex that is used for matching.

◆ value

Node* lib_ruby_parser::MatchWithLvasgn::value

Value that is used for matching.


The documentation for this class was generated from the following file: