class Prism::ParseResult

encountered.
the AST, any comments that were encounters, and any errors that were
This represents the result of a call to ::parse or ::parse_file. It contains

def attach_comments!

Attach the list of comments to their respective locations in the tree.
def attach_comments!
  Comments.new(self).attach!
end

def deconstruct_keys(keys)

def deconstruct_keys(keys)
  { value: value, comments: comments, errors: errors, warnings: warnings }
end

def failure?

def failure?
  !success?
end

def initialize(value, comments, errors, warnings, source)

def initialize(value, comments, errors, warnings, source)
  @value = value
  @comments = comments
  @errors = errors
  @warnings = warnings
  @source = source
end

def mark_newlines!

Walk the tree and mark nodes that are on a new line.
def mark_newlines!
  value.accept(Newlines.new(Array.new(1 + source.offsets.size, false)))
end

def success?

def success?
  errors.empty?
end