Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Prism::ParseResult::Comments.new
new(parse_result)
lib/prism/parse_result/comments.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/prism/parse_result/comments.rb, line 78
def initialize(parse_result)
@parse_result = parse_result
end
Create a new Comments object that will attach comments to the given parse result.