pm_for_node_t

Type Alias pm_for_node_t 

Source
pub type pm_for_node_t = pm_for_node;
Expand description

ForNode

Represents the use of the for keyword.

 for i in a end
 ^^^^^^^^^^^^^^

Type: ::PM_FOR_NODE

@extends pm_node_t

Aliased Type§

#[repr(C)]
pub struct pm_for_node_t { pub base: pm_node, pub index: *mut pm_node, pub collection: *mut pm_node, pub statements: *mut pm_statements_node, pub for_keyword_loc: pm_location_t, pub in_keyword_loc: pm_location_t, pub do_keyword_loc: pm_location_t, pub end_keyword_loc: pm_location_t, }

Fields§

§base: pm_node

The embedded base node.

§index: *mut pm_node

ForNode#index

The index expression for for loops.

 for i in a end
     ^
§collection: *mut pm_node

ForNode#collection

The collection to iterate over.

 for i in a end
          ^
§statements: *mut pm_statements_node

ForNode#statements

Represents the body of statements to execute for each iteration of the loop.

 for i in a
   foo(i)
   ^^^^^^
 end
§for_keyword_loc: pm_location_t

ForNode#for_keyword_loc

The location of the for keyword.

 for i in a end
 ^^^
§in_keyword_loc: pm_location_t

ForNode#in_keyword_loc

The location of the in keyword.

 for i in a end
       ^^
§do_keyword_loc: pm_location_t

ForNode#do_keyword_loc

The location of the do keyword, if present.

 for i in a do end
            ^^
§end_keyword_loc: pm_location_t

ForNode#end_keyword_loc

The location of the end keyword.

 for i in a end
            ^^^