Struct ruby_prism::ShareableConstantNode
source · pub struct ShareableConstantNode<'pr> { /* private fields */ }
Expand description
This node wraps a constant write to indicate that when the value is written, it should have its shareability state modified.
# shareable_constant_value: literal
C = { a: 1 }
^^^^^^^^^^^^
Implementations§
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_literal(&self) -> bool
pub fn is_literal(&self) -> bool
constant writes that should be modified with shareable constant value literal
sourcepub fn is_experimental_everything(&self) -> bool
pub fn is_experimental_everything(&self) -> bool
constant writes that should be modified with shareable constant value experimental everything
sourcepub fn is_experimental_copy(&self) -> bool
pub fn is_experimental_copy(&self) -> bool
constant writes that should be modified with shareable constant value experimental copy