pm_block_parameters_node_t

Type Alias pm_block_parameters_node_t 

Source
pub type pm_block_parameters_node_t = pm_block_parameters_node;
Expand description

BlockParametersNode

Represents a block’s parameters declaration.

 -> (a, b = 1; local) { }
    ^^^^^^^^^^^^^^^^^
 foo do |a, b = 1; local|
        ^^^^^^^^^^^^^^^^^
 end

Type: ::PM_BLOCK_PARAMETERS_NODE

@extends pm_node_t

Aliased Type§

#[repr(C)]
pub struct pm_block_parameters_node_t { pub base: pm_node, pub parameters: *mut pm_parameters_node, pub locals: pm_node_list, pub opening_loc: pm_location_t, pub closing_loc: pm_location_t, }

Fields§

§base: pm_node

The embedded base node.

§parameters: *mut pm_parameters_node

BlockParametersNode#parameters

Represents the parameters of the block.

 -> (a, b = 1; local) { }
     ^^^^^^^^
 foo do |a, b = 1; local|
         ^^^^^^^^
 end
§locals: pm_node_list

BlockParametersNode#locals

Represents the local variables of the block.

 -> (a, b = 1; local) { }
               ^^^^^
 foo do |a, b = 1; local|
                   ^^^^^
 end
§opening_loc: pm_location_t

BlockParametersNode#opening_loc

Represents the opening location of the block parameters.

 -> (a, b = 1; local) { }
    ^
 foo do |a, b = 1; local|
        ^
 end
§closing_loc: pm_location_t

BlockParametersNode#closing_loc

Represents the closing location of the block parameters.

 -> (a, b = 1; local) { }
                    ^
 foo do |a, b = 1; local|
                        ^
 end