instance method
Prism::DSL#location
location(source: default_source, start_offset: 0, length: 0)
lib/prism/dsl.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/dsl.rb, line 75
def location(source: default_source, start_offset: 0, length: 0)
Location.new(source, start_offset, length)
end
Create a new Location object.