class method
Prism.parse_comments
parse_comments(code, **options)
lib/prism/ffi.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/ffi.rb, line 298
def parse_comments(code, **options)
LibRubyParser::PrismString.with_string(code) { |string| parse_comments_common(string, code, options) }
end
Mirror the Prism.parse_comments API by using the serialization API.