pub type pm_instance_variable_write_node_t = pm_instance_variable_write_node;Expand description
InstanceVariableWriteNode
Represents writing to an instance variable.
@foo = 1
^^^^^^^^Type: ::PM_INSTANCE_VARIABLE_WRITE_NODE
@extends pm_node_t
Aliased Type§
#[repr(C)]pub struct pm_instance_variable_write_node_t {
pub base: pm_node,
pub name: u32,
pub name_loc: pm_location_t,
pub value: *mut pm_node,
pub operator_loc: pm_location_t,
}Fields§
§base: pm_nodeThe embedded base node.
name: u32InstanceVariableWriteNode#name
The name of the instance variable, which is a @ followed by an identifier.
@x = :y # name `:@x` @_foo = "bar" # name `@_foo`name_loc: pm_location_tInstanceVariableWriteNode#name_loc
The location of the variable name.
@_x = 1
^^^value: *mut pm_nodeInstanceVariableWriteNode#value
The value to write to the instance variable. It can be any non-void expression.
@foo = :bar
^^^^ @_x = 1234
^^^^operator_loc: pm_location_tInstanceVariableWriteNode#operator_loc
The location of the = operator.
@x = y
^