instance method
Prism::CallNode#equal_loc
equal_loc
lib/prism/node.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/node.rb, line 2802
def equal_loc
location = @equal_loc
case location
when nil
nil
when Location
location
else
@equal_loc = Location.new(source, location >> 32, location & 0xFFFFFFFF)
end
end
Represents the location of the equal sign, in the case that this is an attribute write.
foo.bar = value
^
foo[bar] = value
^