Prism Ruby parser
Loading...
Searching...
No Matches
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...

Collaboration diagram for parse_regular_expression_error_data_t:
Collaboration graph
[legend]

Data Fields

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

Detailed Description

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

Field Documentation

◆ 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.


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