pub type pm_block_parameter_node_t = pm_block_parameter_node;Expand description
BlockParameterNode
Represents a block parameter of a method, block, or lambda definition.
def a(&b)
^^
endType: ::PM_BLOCK_PARAMETER_NODE
Flags (#pm_parameter_flags):
- ::PM_PARAMETER_FLAGS_REPEATED_PARAMETER
@extends pm_node_t
Aliased Type§
#[repr(C)]pub struct pm_block_parameter_node_t {
pub base: pm_node,
pub name: u32,
pub name_loc: pm_location_t,
pub operator_loc: pm_location_t,
}Fields§
§base: pm_nodeThe embedded base node.
name: u32BlockParameterNode#name
The name of the block parameter.
def a(&b) # name `:b`
^
endname_loc: pm_location_tBlockParameterNode#name_loc
Represents the location of the block parameter name.
def a(&b)
^operator_loc: pm_location_tBlockParameterNode#operator_loc
Represents the location of the & operator.
def a(&b)
^
end