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: String
Name of the local variable
value: Option<Box<Node>>
Value that is assigned to a local variable
name_l: Loc
Location 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: Loc
Location of the full expression
foo = 42
~~~~~~~~
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Lvasgn
impl UnwindSafe for Lvasgn
Blanket Implementations
Mutably borrows from an owned value. Read more