Class: LibRubyParser::Nodes::AndAsgn

Inherits:
LibRubyParser::Node show all
Defined in:
lib/lib-ruby-parser/nodes.rb

Overview

Represents a &&= 1 statement.

Instance Attribute Summary collapse

Instance Attribute Details

#expression_lLoc (readonly)

Location of the full expression

a &&= 1
~~~~~~~

Returns:



106
107
108
# File 'lib/lib-ruby-parser/nodes.rb', line 106

def expression_l
  @expression_l
end

#operator_lLoc (readonly)

Location of the &&= operator

a &&= 1
  ~~~

Returns:



97
98
99
# File 'lib/lib-ruby-parser/nodes.rb', line 97

def operator_l
  @operator_l
end

#recvNode (readonly)

Receiver of the &&= operation.

Lvasgn("a") node for a &&= 1

Returns:



82
83
84
# File 'lib/lib-ruby-parser/nodes.rb', line 82

def recv
  @recv
end

#valueNode (readonly)

Right hand statement of assignment

Int("1") node for a &&= 1

Returns:



88
89
90
# File 'lib/lib-ruby-parser/nodes.rb', line 88

def value
  @value
end