def process
location = get_node_location(node)
parent = if other_class_eval?
Solargraph::Pin::Namespace.new(
location: location,
type: :class,
name: unpack_name(node.children[0].children[0]),
source: :parser,
)
else
region.closure
end
block_pin = Solargraph::Pin::Block.new(
location: location,
closure: parent,
node: node,
receiver: node.children[0],
comments: comments_for(node),
scope: region.scope || region.closure.context.scope,
source: :parser
)
pins.push block_pin
process_children region.update(closure: block_pin)
end