Ruby: pm_options_scope Struct Reference

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

Data Fields
pm_options_scope Struct Reference

A scope of locals surrounding the code that is being parsed. More...

`#include <options.h>`

## Data Fields
size_t | locals_count
| The number of locals in the scope.
pm_string_t * | locals
| The names of the locals in the scope.
uint8_t | forwarding
| Flags for the set of forwarding parameters in this scope.

## Detailed Description

A scope of locals surrounding the code that is being parsed.

Definition at line 36 of file options.h.

## Field Documentation

## ◆ forwarding

uint8_t pm_options_scope::forwarding

Flags for the set of forwarding parameters in this scope.

Definition at line 44 of file options.h.

Referenced by pm_options_scope_forwarding_set(), pm_options_scope_init(), and pm_parser_init().

## ◆ locals

pm_string_t* pm_options_scope::locals

The names of the locals in the scope.

Definition at line 41 of file options.h.

Referenced by pm_options_free(), pm_options_read(), pm_options_scope_init(), and pm_options_scope_local_get().

## ◆ locals_count

size_t pm_options_scope::locals_count

The number of locals in the scope.

Definition at line 38 of file options.h.

Referenced by pm_options_free(), pm_options_scope_init(), and pm_parser_init().

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

- prism/options.h