pm_constant_path_write_node_t

Type Alias pm_constant_path_write_node_t 

Source
pub type pm_constant_path_write_node_t = pm_constant_path_write_node;
Expand description

ConstantPathWriteNode

Represents writing to a constant path.

 ::Foo = 1
 ^^^^^^^^^
 Foo::Bar = 1
 ^^^^^^^^^^^^
 ::Foo::Bar = 1
 ^^^^^^^^^^^^^^

Type: ::PM_CONSTANT_PATH_WRITE_NODE

@extends pm_node_t

Aliased Type§

#[repr(C)]
pub struct pm_constant_path_write_node_t { pub base: pm_node, pub target: *mut pm_constant_path_node, pub operator_loc: pm_location_t, pub value: *mut pm_node, }

Fields§

§base: pm_node

The embedded base node.

§target: *mut pm_constant_path_node

ConstantPathWriteNode#target

A node representing the constant path being written to.

 Foo::Bar = 1
 ^^^^^^^^
 ::Foo = :abc
 ^^^^^
§operator_loc: pm_location_t

ConstantPathWriteNode#operator_loc

The Location of the = operator.

 ::ABC = 123
       ^
§value: *mut pm_node

ConstantPathWriteNode#value

The value to write to the constant path. It can be any non-void expression.

 FOO::BAR = :abc
            ^^^^