Ruby  3.4.0dev (2024-11-05 revision ed06f018bdffe9bb7f8bdbf15fa5a727e402bfe9)
Data Fields
parse_regular_expression_named_capture_data_t Struct Reference

This struct is used to pass information between the regular expression parser and the named capture callback. More...

Data Fields

pm_parser_tparser
 The parser that is parsing the regular expression. More...
 
pm_call_node_tcall
 The call node wrapping the regular expression node. More...
 
pm_match_write_node_tmatch
 The match write node that is being created. More...
 
pm_constant_id_list_t names
 The list of names that have been parsed. More...
 
bool shared
 Whether the content of the regular expression is shared. More...
 

Detailed Description

This struct is used to pass information between the regular expression parser and the named capture callback.

Definition at line 20774 of file prism.c.

Field Documentation

◆ call

pm_call_node_t* parse_regular_expression_named_capture_data_t::call

The call node wrapping the regular expression node.

Definition at line 20779 of file prism.c.

◆ match

pm_match_write_node_t* parse_regular_expression_named_capture_data_t::match

The match write node that is being created.

Definition at line 20782 of file prism.c.

◆ names

pm_constant_id_list_t parse_regular_expression_named_capture_data_t::names

The list of names that have been parsed.

Definition at line 20785 of file prism.c.

◆ parser

pm_parser_t* parse_regular_expression_named_capture_data_t::parser

The parser that is parsing the regular expression.

Definition at line 20776 of file prism.c.

◆ shared

bool parse_regular_expression_named_capture_data_t::shared

Whether the content of the regular expression is shared.

This impacts whether or not we used owned constants or shared constants in the constant pool for the names of the captures.

Definition at line 20792 of file prism.c.


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