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_nodeThe embedded base node.
index: *mut pm_nodeForNode#index
The index expression for for loops.
for i in a end
^collection: *mut pm_nodeForNode#collection
The collection to iterate over.
for i in a end
^statements: *mut pm_statements_nodeForNode#statements
Represents the body of statements to execute for each iteration of the loop.
for i in a
foo(i)
^^^^^^
endfor_keyword_loc: pm_location_tForNode#for_keyword_loc
The location of the for keyword.
for i in a end
^^^in_keyword_loc: pm_location_tForNode#in_keyword_loc
The location of the in keyword.
for i in a end
^^do_keyword_loc: pm_location_tForNode#do_keyword_loc
The location of the do keyword, if present.
for i in a do end
^^end_keyword_loc: pm_location_tForNode#end_keyword_loc
The location of the end keyword.
for i in a end
^^^