class YARP::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 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

def mark_newlines
  newline_marked = Array.new(1 + @source.offsets.size, false)
  visitor = MarkNewlinesVisitor.new(newline_marked)
  value.accept(visitor)
  value
end

def success?

def success?
  errors.empty?
end