pub struct ArrayNode<'pr> { /* private fields */ }Expand description
Represents an array literal. This can be a regular array using brackets or a special array using % like %w or %i.
[1, 2, 3]
^^^^^^^^^Implementations§
Source§impl<'pr> ArrayNode<'pr>
impl<'pr> ArrayNode<'pr>
Sourcepub fn flags(&self) -> pm_node_flags_t
pub fn flags(&self) -> pm_node_flags_t
Returns the flags of this node.
Sourcepub fn is_contains_splat(&self) -> bool
pub fn is_contains_splat(&self) -> bool
if array contains splat nodes
Sourcepub fn opening_loc(&self) -> Option<Location<'pr>>
pub fn opening_loc(&self) -> Option<Location<'pr>>
Returns the opening_loc param
Sourcepub fn closing_loc(&self) -> Option<Location<'pr>>
pub fn closing_loc(&self) -> Option<Location<'pr>>
Returns the closing_loc param