Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Prism::ParseResult#mark_newlines!
mark_newlines!
lib/prism/parse_result/newlines.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/prism/parse_result/newlines.rb, line 60
def mark_newlines!
value.accept(Newlines.new(Array.new(1 + source.offsets.size, false)))
end
Walk the tree and mark nodes that are on a new line.