Ruby 4.1.0dev (2026-10-28 revision 1b06b950bb460d20a9dcecb8b97d363adbf4a358)
Data Fields
pm_regexp_name_data_t Struct Reference

State for processing named capture groups found during regexp parsing. More...

Data Fields

pm_call_node_t * call
 The call node wrapping the regular expression node (for =~).
 
pm_match_write_node_t * match
 The match write node being built, or NULL if no captures found yet.
 
pm_constant_id_set_t names
 The set of capture names found so far.
 
bool shared
 Whether the content being parsed points into the original source.
 

Detailed Description

State for processing named capture groups found during regexp parsing.

Definition at line 21700 of file prism.c.

Field Documentation

◆ call

pm_call_node_t* pm_regexp_name_data_t::call

The call node wrapping the regular expression node (for =~).

Definition at line 21702 of file prism.c.

◆ match

pm_match_write_node_t* pm_regexp_name_data_t::match

The match write node being built, or NULL if no captures found yet.

Definition at line 21705 of file prism.c.

◆ names

pm_constant_id_set_t pm_regexp_name_data_t::names

The set of capture names found so far.

Definition at line 21708 of file prism.c.

◆ shared

bool pm_regexp_name_data_t::shared

Whether the content being parsed points into the original source.

If it does, capture names can be located in the source directly. Otherwise they live in a separate copy and are located at the call's receiver.

Definition at line 21715 of file prism.c.


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