pm_block_parameter_node_t

Type Alias pm_block_parameter_node_t 

Source
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)
       ^^
 end

Type: ::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_node

The embedded base node.

§name: u32

BlockParameterNode#name

The name of the block parameter.

 def a(&b) # name `:b`
        ^
 end
§name_loc: pm_location_t

BlockParameterNode#name_loc

Represents the location of the block parameter name.

 def a(&b)
        ^
§operator_loc: pm_location_t

BlockParameterNode#operator_loc

Represents the location of the & operator.

 def a(&b)
       ^
 end