|
Ruby 4.1.0dev (2026-12-06 revision 6b501f5444cf675f4a654bda46c812e2c1df9fb8)
|
MultiWriteNode. More...
#include <ast.h>
Data Fields | |
| pm_node_t | base |
| The embedded base node. | |
| struct pm_node_list | lefts |
| MultiWriteNode#lefts. | |
| PM_NODE_ALIGNAS struct pm_node * | rest |
| MultiWriteNode#rest. | |
| struct pm_node_list | rights |
| MultiWriteNode#rights. | |
| pm_location_t | lparen_loc |
| MultiWriteNode#lparen_loc. | |
| pm_location_t | rparen_loc |
| MultiWriteNode#rparen_loc. | |
| pm_location_t | operator_loc |
| MultiWriteNode#operator_loc. | |
| PM_NODE_ALIGNAS struct pm_node * | value |
| MultiWriteNode#value. | |
| 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. | |
MultiWriteNode.
Represents a write to a multi-target expression.
a, b, c = 1, 2, 3 ^^^^^^^^^^^^^^^^^
Type: ::PM_MULTI_WRITE_NODE
| struct pm_node_list pm_multi_write_node::lefts |
| pm_location_t pm_multi_write_node::lparen_loc |
| pm_location_t pm_multi_write_node::operator_loc |
| PM_NODE_ALIGNAS struct pm_node* pm_multi_write_node::rest |
MultiWriteNode#rest.
Represents a splat node in the target expression.
a, b, *c = 1, 2, 3, 4
^^
The variable can be empty, this results in a SplatNode with a nil expression field.
a, b, * = 1, 2, 3, 4
^
If the * is omitted, this field will contain an ImplicitRestNode
a, b, = 1, 2, 3, 4
^
| struct pm_node_list pm_multi_write_node::rights |
| pm_location_t pm_multi_write_node::rparen_loc |
| PM_NODE_ALIGNAS struct pm_node* pm_multi_write_node::value |
MultiWriteNode#value.
The value to write to the targets. It can be any non-void expression.
a, b, c = 1, 2, 3
^^^^^^^