Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Prism::ParseResult::Newlines.new
new(lines)
lib/prism/parse_result/newlines.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/prism/parse_result/newlines.rb, line 27
def initialize(lines)
# @type var lines: Integer
@lines = Array.new(1 + lines, false)
end
Create a new Newlines visitor with the given newline offsets.