Ruby  3.4.0dev (2024-11-06 revision 4120f2babd7924a31c6d685be2429492af5c19b9)
Data Fields
pm_static_literals_metadata_t Struct Reference

A small struct used for passing around a subset of the information that is stored on the parser. More...

Data Fields

const pm_newline_list_tnewline_list
 The list of newline offsets to use to calculate line numbers. More...
 
int32_t start_line
 The line number that the parser starts on. More...
 
const char * encoding_name
 The name of the encoding that the parser is using. More...
 

Detailed Description

A small struct used for passing around a subset of the information that is stored on the parser.

We use this to avoid having static literals explicitly depend on the parser struct.

Definition at line 8 of file static_literals.c.

Field Documentation

◆ encoding_name

const char* pm_static_literals_metadata_t::encoding_name

The name of the encoding that the parser is using.

Definition at line 16 of file static_literals.c.

◆ newline_list

const pm_newline_list_t* pm_static_literals_metadata_t::newline_list

The list of newline offsets to use to calculate line numbers.

Definition at line 10 of file static_literals.c.

◆ start_line

int32_t pm_static_literals_metadata_t::start_line

The line number that the parser starts on.

Definition at line 13 of file static_literals.c.


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