class RuboCop::NodePattern::Compiler

def with_temp_node(cur_node)

def with_temp_node(cur_node)
  with_temp_variable do |temp_var|
    # double assign to temp#{n} to avoid "assigned but unused variable"
    yield "#{temp_var} = #{temp_var} = #{cur_node}", temp_var
  end
end