Ruby 4.1.0dev (2026-12-04 revision 002bf668ce6ea5f53e8e0d0f0cd780ab4360ee14)
pm_parse_result_t Struct Reference

Data Fields

pm_arena_t * arena
 The arena allocator for AST-lifetime memory.
pm_parser_t * parser
 The parser that will do the actual parsing.
pm_options_t * options
 The options that will be passed to the parser.
pm_source_t * source
 The source backing the parse (file, string, or stream).
VALUE source_string
 Ruby strings whose bytes Prism borrows until compilation finishes.
VALUE frozen_source
VALUE filepath
VALUE frozen_filepath
pm_scope_node_t node
 The resulting scope node that will hold the generated AST.
bool parsed
 Whether or not this parse result has performed its parsing yet.

Detailed Description

Definition at line 167 of file prism_compile.h.

Field Documentation

◆ arena

pm_arena_t* pm_parse_result_t::arena

The arena allocator for AST-lifetime memory.

Definition at line 169 of file prism_compile.h.

◆ filepath

VALUE pm_parse_result_t::filepath

Definition at line 182 of file prism_compile.h.

◆ frozen_filepath

VALUE pm_parse_result_t::frozen_filepath

Definition at line 182 of file prism_compile.h.

◆ frozen_source

VALUE pm_parse_result_t::frozen_source

Definition at line 181 of file prism_compile.h.

◆ node

pm_scope_node_t pm_parse_result_t::node

The resulting scope node that will hold the generated AST.

Definition at line 185 of file prism_compile.h.

◆ options

pm_options_t* pm_parse_result_t::options

The options that will be passed to the parser.

Definition at line 175 of file prism_compile.h.

◆ parsed

bool pm_parse_result_t::parsed

Whether or not this parse result has performed its parsing yet.

Definition at line 188 of file prism_compile.h.

◆ parser

pm_parser_t* pm_parse_result_t::parser

The parser that will do the actual parsing.

Definition at line 172 of file prism_compile.h.

◆ source

pm_source_t* pm_parse_result_t::source

The source backing the parse (file, string, or stream).

Definition at line 178 of file prism_compile.h.

◆ source_string

VALUE pm_parse_result_t::source_string

Ruby strings whose bytes Prism borrows until compilation finishes.

Definition at line 181 of file prism_compile.h.


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