pm_begin_node_t

Type Alias pm_begin_node_t 

Source
pub type pm_begin_node_t = pm_begin_node;
Expand description

BeginNode

Represents a begin statement.

 begin
   foo
 end
 ^^^^^

Type: ::PM_BEGIN_NODE

@extends pm_node_t

Aliased Type§

#[repr(C)]
pub struct pm_begin_node_t { pub base: pm_node, pub begin_keyword_loc: pm_location_t, pub statements: *mut pm_statements_node, pub rescue_clause: *mut pm_rescue_node, pub else_clause: *mut pm_else_node, pub ensure_clause: *mut pm_ensure_node, pub end_keyword_loc: pm_location_t, }

Fields§

§base: pm_node

The embedded base node.

§begin_keyword_loc: pm_location_t

BeginNode#begin_keyword_loc

Represents the location of the begin keyword.

 begin x end
 ^^^^^
§statements: *mut pm_statements_node

BeginNode#statements

Represents the statements within the begin block.

 begin x end
       ^
§rescue_clause: *mut pm_rescue_node

BeginNode#rescue_clause

Represents the rescue clause within the begin block.

 begin x; rescue y; end
          ^^^^^^^^
§else_clause: *mut pm_else_node

BeginNode#else_clause

Represents the else clause within the begin block.

 begin x; rescue y; else z; end
                    ^^^^^^
§ensure_clause: *mut pm_ensure_node

BeginNode#ensure_clause

Represents the ensure clause within the begin block.

 begin x; ensure y; end
          ^^^^^^^^
§end_keyword_loc: pm_location_t

BeginNode#end_keyword_loc

Represents the location of the end keyword.

 begin x end
         ^^^