Ruby: pm_static_literals_metadata_t Struct Reference

Ruby 3.4.5p51 (2025-07-16 revision 20cda200d3ce092571d0b5d342dadca69636cb0f)

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_t * | newline_list
| The list of newline offsets to use to calculate line numbers.
int32_t | start_line
| The line number that the parser starts on.
const char * | encoding_name
| The name of 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 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:

- prism/static_literals.c