You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ivasgn_node.rb
    path of file: ./repos/solargraph/lib/solargraph/parser/legacy/node_processors
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Solargraph
  module Parser
    module Legacy
      module NodeProcessors
        class IvasgnNode < Parser::NodeProcessor::Base
          include Legacy::NodeMethods

          def process
            loc = get_node_location(node)
            pins.push Solargraph::Pin::InstanceVariabl
    
          def process
            loc = get_node_location(node)
            pins.push Solargraph::Pin::InstanceVariable.new(
              location: loc,
              closure: region.closure,
              name: node.children[0].to_s,
              comments: comments_for(node),
              assignment: node.children[1]
            )
            if region.visibility == :module_function
              here = get_node_start_position(node)
              named_path = named_path_pin(here)
              if named_path.is_a?(Pin::Method)
                pins.push Solargraph::Pin::InstanceVariable.new(
                  location: loc,
                  closure: Pin::Namespace.new(type: :module, closure: region.closure.closure, name: region.closure.name),
                  name: node.children[0].to_s,
                  comments: comments_for(node),
                  assignment: node.children[1]
                )
              end