Type Alias ruby_prism_sys::pm_node_t

source ·
pub type pm_node_t = pm_node;
Expand description

This is the base structure that represents a node in the syntax tree. It is embedded into every node type.

Aliased Type§

struct pm_node_t {
    pub type_: u16,
    pub flags: u16,
    pub location: pm_location_t,
}

Fields§

§type_: u16

This represents the type of the node. It somewhat maps to the nodes that existed in the original grammar and ripper, but it’s not a 1:1 mapping.

§flags: u16

This represents any flags on the node. Some are common to all nodes, and some are specific to the type of node.

§location: pm_location_t

This is the location of the node in the source. It’s a range of bytes containing a start and an end.