class RuboCop::AST::HashElementNode::HashElementDelta

def key_delta(alignment = :left)

def key_delta(alignment = :left)
  return 0 if first.same_line?(second)
  return 0 if keyword_splat? && alignment == :right
  delta(first.key.loc, second.key.loc, alignment)
end