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_nodeThe embedded base node.
begin_keyword_loc: pm_location_tBeginNode#begin_keyword_loc
Represents the location of the begin keyword.
begin x end
^^^^^statements: *mut pm_statements_nodeBeginNode#statements
Represents the statements within the begin block.
begin x end
^rescue_clause: *mut pm_rescue_nodeBeginNode#rescue_clause
Represents the rescue clause within the begin block.
begin x; rescue y; end
^^^^^^^^else_clause: *mut pm_else_nodeBeginNode#else_clause
Represents the else clause within the begin block.
begin x; rescue y; else z; end
^^^^^^ensure_clause: *mut pm_ensure_nodeBeginNode#ensure_clause
Represents the ensure clause within the begin block.
begin x; ensure y; end
^^^^^^^^end_keyword_loc: pm_location_tBeginNode#end_keyword_loc
Represents the location of the end keyword.
begin x end
^^^