class RuboCop::Cop::Style::SymbolArray

def build_bracketed_array(node)

def build_bracketed_array(node)
  return '[]' if node.children.empty?
  syms = node.children.map do |c|
    if c.dsym_type?
      string_literal = to_string_literal(c.source)
      ":#{trim_string_interpolation_escape_character(string_literal)}"
    else
      to_symbol_literal(c.value.to_s)
    end
  end
  build_bracketed_array_with_appropriate_whitespace(elements: syms, node: node)
end