Class: LibRubyParser::Nodes::AndAsgn
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::AndAsgn
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents ‘a &&= 1` statement.
Instance Attribute Summary collapse
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#operator_l ⇒ Loc
readonly
Location of the ‘&&=` operator.
-
#recv ⇒ Node
readonly
Receiver of the ‘&&=` operation.
-
#value ⇒ Node
readonly
Right hand statement of assignment.
Instance Attribute Details
#expression_l ⇒ Loc (readonly)
Location of the full expression
“‘text a &&= 1 ~~~~~~~ “`
106 107 108 |
# File 'lib/lib-ruby-parser/nodes.rb', line 106 def expression_l @expression_l end |
#operator_l ⇒ Loc (readonly)
Location of the ‘&&=` operator
“‘text a &&= 1
~~~
“‘
97 98 99 |
# File 'lib/lib-ruby-parser/nodes.rb', line 97 def operator_l @operator_l end |
#recv ⇒ Node (readonly)
Receiver of the ‘&&=` operation.
‘Lvasgn(“a”)` node for `a &&= 1`
82 83 84 |
# File 'lib/lib-ruby-parser/nodes.rb', line 82 def recv @recv end |
#value ⇒ Node (readonly)
Right hand statement of assignment
‘Int(“1”)` node for `a &&= 1`
88 89 90 |
# File 'lib/lib-ruby-parser/nodes.rb', line 88 def value @value end |