instance method
Prism::UnlessNode#keyword_loc
keyword_loc
lib/prism/node.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/node.rb, line 17802
def keyword_loc
location = @keyword_loc
return location if location.is_a?(Location)
@keyword_loc = Location.new(source, location >> 32, location & 0xFFFFFFFF)
end
The location of the unless keyword.
unless cond then bar end
^^^^^^
bar unless cond
^^^^^^