class Solargraph::Parser::ParserGem::NodeProcessors::WhileNode

def process

def process
  location = get_node_location(node)
  # Note - this should not be considered a block, as the

  # while statement doesn't create a closure - e.g.,

  # variables created inside can be seen from outside as

  # well

  pins.push Solargraph::Pin::While.new(
    location: location,
    closure: region.closure,
    node: node,
    comments: comments_for(node),
  )
  process_children region
end