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: search.rb
    path of file: ./repos/arachni/lib/arachni/parser/with_children
    
    the code of the file until where you have to start completion: =begin
    Copyright 2010-2022 Ecsypno <http://www.ecsypno.com>

    This file is part of the A
    
    def nodes_by_name( name )
        name = name.to_s.downcase

        @nodes_by_name ||= {}
        @nodes_by_name[name.hash] ||= begin
            descendants.select do |e|
                e.respond_to?( :name ) && e.name == name.to_sym
            end
        end