On this page
Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
Prism::ParseResult
This represents the result of a call to ::parse or ::parse_file. It contains the AST, any comments that were encounters, and any errors that were encountered.
Class methods 1
Instance methods 5
The list of comments that were encountered during parsing.
An optional location that represents the location of the content after the __END__ marker. This content is loaded into the DATA constant when the file being parsed is the main file being executed.
The list of errors that were generated during parsing.
The list of magic comments that were encountered during parsing.
The value that was generated by parsing. Normally this holds the AST, but it can sometimes how a list of tokens or other results passed back from the parser.
The list of warnings that were generated during parsing.