class Rubocop::Cop::SpaceAroundBraces

def inspect(source, tokens, sexp, comments)

def inspect(source, tokens, sexp, comments)
  @source = source
  positions_not_to_check = get_positions_not_to_check(tokens, sexp)
  tokens.each_cons(2) do |t1, t2|
    next if ([t1.pos, t2.pos] - positions_not_to_check).size < 2
    type1, type2 = t1.type, t2.type
    # :tLBRACE in hash literals, :tLCURLY otherwise.
    next if [:tLCURLY, :tLBRACE].include?(type1) && type2 == :tRCURLY
    check(t1, t2, MSG_LEFT) if type1 == :tLCURLY || type2 == :tLCURLY
    check(t1, t2, MSG_RIGHT) if type2 == :tRCURLY
  end
end