Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Prism::Location.null
null
lib/prism/parse_result.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/prism/parse_result.rb, line 221
def self.null
new(nil, 0, 0)
end
Returns a null location that does not correspond to a source and points to the beginning of the file. Useful for when you want a location object but do not care where it points.