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

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

Data Fields

pm_parser_tparser
 The parser that we are parsing the regular expression for. More...
 
const uint8_t * start
 The start of the regular expression. More...
 
const uint8_t * end
 The end of the regular expression. More...
 
bool shared
 Whether or not the source of the regular expression is shared. More...
 

Detailed Description

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

Definition at line 17928 of file prism.c.

Field Documentation

◆ end

const uint8_t* parse_regular_expression_error_data_t::end

The end of the regular expression.

Definition at line 17936 of file prism.c.

◆ parser

pm_parser_t* parse_regular_expression_error_data_t::parser

The parser that we are parsing the regular expression for.

Definition at line 17930 of file prism.c.

◆ shared

bool parse_regular_expression_error_data_t::shared

Whether or not the source of the regular expression is shared.

This impacts the location of error messages, because if it is shared then we can use the location directly and if it is not, then we use the bounds of the regular expression itself.

Definition at line 17944 of file prism.c.

◆ start

const uint8_t* parse_regular_expression_error_data_t::start

The start of the regular expression.

Definition at line 17933 of file prism.c.


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