instance method
Prism::HashPatternNode#opening_loc
opening_loc
lib/prism/node.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/node.rb, line 8493
def opening_loc
location = @opening_loc
case location
when nil
nil
when Location
location
else
@opening_loc = Location.new(source, location >> 32, location & 0xFFFFFFFF)
end
end
The location of the opening brace.
foo => { a: 1 }
^
foo => Bar[a: 1]
^