Struct lib_ruby_parser::nodes::Ivasgn [−][src]
#[repr(C)]pub struct Ivasgn { pub name: String, pub value: Option<Box<Node>>, pub name_l: Loc, pub operator_l: Option<Loc>, pub expression_l: Loc, }
Expand description
Represents instance variable assignment (i.e @foo = 42)
Fields
name: StringName of the instance variable, String("@foo") in @foo = 42
value: Option<Box<Node>>Value that is assigned to instance variable.
None if instance variable assignment is a part of the multi-assignment.
In such case value is a part of the Masgn node.
name_l: LocLocation of the instance variable name.
@foo = 1
~~~~
operator_l: Option<Loc>Location of the = operator.
@foo = 1
~
None if instance variable assignment is a part of the multi-assignment.
In such case value is a part of the Masgn node.
expression_l: LocLocation of the full expression
@foo = 42
~~~~~~~~~
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Ivasgnimpl UnwindSafe for IvasgnBlanket Implementations
Mutably borrows from an owned value. Read more