Ruby: pm_local_t Struct Reference

Ruby 3.4.1p0 (2024-12-25 revision 48d4efcb85000e1ebae42004e963b5d0cedddcf2)

Data Fields
pm_local_t Struct Reference

This tracks an individual local variable in a certain lexical context, as well as the number of times is it read. More...

`#include <parser.h>`

## Data Fields
pm_constant_id_t | name
| The name of the local variable.
pm_location_t | location
| The location of the local variable in the source.
uint32_t | index
| The index of the local variable in the local table.
uint32_t | reads
| The number of times the local variable is read.
uint32_t | hash
| The hash of the local variable.

## Detailed Description

This tracks an individual local variable in a certain lexical context, as well as the number of times is it read.

Definition at line 532 of file parser.h.

## Field Documentation

## ◆ hash

uint32_t pm_local_t::hash

The hash of the local variable.

Definition at line 546 of file parser.h.

## ◆ index

uint32_t pm_local_t::index

The index of the local variable in the local table.

Definition at line 540 of file parser.h.

## ◆ location

pm_location_t pm_local_t::location

The location of the local variable in the source.

Definition at line 537 of file parser.h.

## ◆ name

pm_constant_id_t pm_local_t::name

The name of the local variable.

Definition at line 534 of file parser.h.

## ◆ reads

uint32_t pm_local_t::reads

The number of times the local variable is read.

Definition at line 543 of file parser.h.

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

- prism/parser.h