This is a result specific to the ‘parse` and `parse_file` methods.

Attributes
Read

The syntax tree that was parsed from the source code.

Class Methods

Create a new parse result object with the given values.

Instance Methods

Attach the list of comments to their respective locations in the tree.

Implement the hash pattern matching interface for ParseResult.

Returns a string representation of the syntax tree with the errors displayed inline.

Walk the tree and mark nodes that are on a new line, loosely emulating the behavior of CRuby’s ‘:line` tracepoint event.