Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Prism::Node#comments
comments
lib/prism/node.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/prism/node.rb, line 130
def comments
location.comments
end
Delegates to the comments of the associated location object.
See also
#child_nodes
#comment_targets
#cached_start_code_units_offset
#compact_child_nodes
also in
4.0