Ruby: pm_arguments_node Struct Reference

Ruby 4.0.6p0 (2026-07-14 revision 03b6d3f8898a28604fe6cb00eae3226b821168f4)

Data Fields
pm_arguments_node Struct Reference

ArgumentsNode. More...

`#include <ast.h>`

## Data Fields
pm_node_t | base
| The embedded base node.
struct pm_node_list | arguments
| ArgumentsNode#arguments.
Data Fields inherited from pm_node
pm_node_type_t | type
| This represents the type of the node.
pm_node_flags_t | flags
| This represents any flags on the node.
uint32_t | node_id
| The unique identifier for this node, which is deterministic based on the source.
pm_location_t | location
| This is the location of the node in the source.

## Detailed Description

ArgumentsNode.

Represents a set of arguments to a method or a keyword.

    return foo, bar, baz
           ^^^^^^^^^^^^^

Type: ::PM_ARGUMENTS_NODE

Flags (#pm_arguments_node_flags):

- ::PM_ARGUMENTS_NODE_FLAGS_CONTAINS_FORWARDING
- ::PM_ARGUMENTS_NODE_FLAGS_CONTAINS_KEYWORDS
- ::PM_ARGUMENTS_NODE_FLAGS_CONTAINS_KEYWORD_SPLAT
- ::PM_ARGUMENTS_NODE_FLAGS_CONTAINS_SPLAT
- ::PM_ARGUMENTS_NODE_FLAGS_CONTAINS_MULTIPLE_SPLATS

Definition at line 1333 of file ast.h.

## Field Documentation

## ◆ arguments

struct pm_node_list pm_arguments_node::arguments

ArgumentsNode#arguments.

The list of arguments, if present. These can be any non-void expressions.

    foo(bar, baz)
        ^^^^^^^^

Definition at line 1346 of file ast.h.

Referenced by pm_dump_json(), pm_node_destroy(), and pm_visit_child_nodes().

## ◆ base

pm_node_t pm_arguments_node::base

The embedded base node.

Definition at line 1335 of file ast.h.

Referenced by pm_dump_json().

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

- prism/ast.h