class RuboCop::AST::ProcessedSource

def valid_syntax?

def valid_syntax?
  return false if @parser_error
  @diagnostics.none? { |d| INVALID_LEVELS.include?(d.level) }
end