Ruby 4.1.0dev (2026-09-21 revision 61de3dd727146cfcf24e8051595bb2fb842f37aa)
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_line_offset_list_tline_offsets
 The list of newline offsets to use to calculate line numbers.
 
const uint8_t * start
 The start of the source being parsed.
 
int32_t start_line
 The line number that the parser starts on.
 
const pm_encoding_tencoding
 The encoding that the parser is using.
 

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 23 of file static_literals.c.

Field Documentation

◆ encoding

const pm_encoding_t* pm_static_literals_metadata_t::encoding

The encoding that the parser is using.

Definition at line 34 of file static_literals.c.

◆ line_offsets

const pm_line_offset_list_t* pm_static_literals_metadata_t::line_offsets

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

Definition at line 25 of file static_literals.c.

◆ start

const uint8_t* pm_static_literals_metadata_t::start

The start of the source being parsed.

Definition at line 28 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 31 of file static_literals.c.


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