pub type pm_range_node_t = pm_range_node;Expand description
RangeNode
Represents the use of the .. or ... operators.
1..2
^^^^ c if a =~ /left/ ... b =~ /right/
^^^^^^^^^^^^^^^^^^^^^^^^^^^^Type: ::PM_RANGE_NODE
Flags (#pm_range_flags):
- ::PM_RANGE_FLAGS_EXCLUDE_END
@extends pm_node_t
Aliased Type§
#[repr(C)]pub struct pm_range_node_t {
pub base: pm_node,
pub left: *mut pm_node,
pub right: *mut pm_node,
pub operator_loc: pm_location_t,
}Fields§
§base: pm_nodeThe embedded base node.
left: *mut pm_nodeRangeNode#left
The left-hand side of the range, if present. It can be either nil or any non-void expression.
1...
^ hello...goodbye
^^^^^right: *mut pm_nodeRangeNode#right
The right-hand side of the range, if present. It can be either nil or any non-void expression.
..5
^ 1...foo
^^^If neither right-hand or left-hand side was included, this will be a MissingNode.
operator_loc: pm_location_tRangeNode#operator_loc
The location of the .. or ... operator.