pm_hash_node_t

Type Alias pm_hash_node_t 

Source
pub type pm_hash_node_t = pm_hash_node;
Expand description

HashNode

Represents a hash literal.

 { a => b }
 ^^^^^^^^^^

Type: ::PM_HASH_NODE

@extends pm_node_t

Aliased Type§

#[repr(C)]
pub struct pm_hash_node_t { pub base: pm_node, pub opening_loc: pm_location_t, pub elements: pm_node_list, pub closing_loc: pm_location_t, }

Fields§

§base: pm_node

The embedded base node.

§opening_loc: pm_location_t

HashNode#opening_loc

The location of the opening brace.

 { a => b }
 ^
§elements: pm_node_list

HashNode#elements

The elements of the hash. These can be either AssocNodes or AssocSplatNodes.

 { a: b }
   ^^^^
 { **foo }
   ^^^^^
§closing_loc: pm_location_t

HashNode#closing_loc

The location of the closing brace.

 { a => b }
          ^