Struct lib_ruby_parser::nodes::Lvasgn [−][src]
#[repr(C)]pub struct Lvasgn { pub name: String, pub value: Option<Box<Node>>, pub name_l: Loc, pub operator_l: Option<Loc>, pub expression_l: Loc, }
Expand description
Represents local variable assignment (i.e. foo = 42)
Fields
name: StringName of the local variable
value: Option<Box<Node>>Value that is assigned to a local variable
name_l: LocLocation of the local variable name
foo = 42
~~~
operator_l: Option<Loc>Location of the = operator
foo = 42
~
None if local 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 Lvasgnimpl UnwindSafe for LvasgnBlanket Implementations
Mutably borrows from an owned value. Read more