Ruby  3.4.0dev (2024-11-22 revision 0989400a925cd201defdca9eb28eb87200b30785)
Data Fields
pm_locals Struct Reference

This is a set of local variables in a certain lexical context (method, class, module, etc.). More...

#include <parser.h>

Data Fields

uint32_t size
 The number of local variables in the set. More...
 
uint32_t capacity
 The capacity of the local variables set. More...
 
pm_local_tlocals
 The nullable allocated memory for the local variables in the set. More...
 

Detailed Description

This is a set of local variables in a certain lexical context (method, class, module, etc.).

We need to track how many times these variables are read in order to warn if they only get written.

Definition at line 554 of file parser.h.

Field Documentation

◆ capacity

uint32_t pm_locals::capacity

The capacity of the local variables set.

Definition at line 559 of file parser.h.

◆ locals

pm_local_t* pm_locals::locals

The nullable allocated memory for the local variables in the set.

Definition at line 562 of file parser.h.

◆ size

uint32_t pm_locals::size

The number of local variables in the set.

Definition at line 556 of file parser.h.


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