Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

Prism::Translation::Parser#parse_with_comments

parse_with_comments(source_buffer)

Parses a source buffer and returns the AST and the source code comments.