Ruby: pm_location_t Struct Reference

Ruby 4.0.5p0 (2026-05-20 revision 64336ffd0ee9e1f4c05891695a3d7b49cb709721)

Data Fields
pm_location_t Struct Reference

This represents a range of bytes in the source string to which a node or token corresponds. More...

`#include <ast.h>`

## Data Fields
const uint8_t * | start
| A pointer to the start location of the range in the source.
const uint8_t * | end
| A pointer to the end location of the range in the source.

## Detailed Description

This represents a range of bytes in the source string to which a node or token corresponds.

Definition at line 544 of file ast.h.

## Field Documentation

## ◆ end

const uint8_t* pm_location_t::end

A pointer to the end location of the range in the source.

Definition at line 549 of file ast.h.

## ◆ start

const uint8_t* pm_location_t::start

A pointer to the start location of the range in the source.

Definition at line 546 of file ast.h.

Referenced by pm_dump_json().

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

- prism/ast.h