fdoc

functionfind_anywhereprivate

integer function find_anywhere(list, name, entity) result(found)

The entity named name at the top level of the project, or 0.

Arguments

NameTypeIntentAttributesDescription
listtype(entity_list_t)in

the entities

namecharacter(len=*)in

the name, in lowercase

entitycharacter(len=*)in

the class, in lowercase

Result

NameTypeAttributesDescription
foundinteger

Calls

Source

Show the code
integer function find_anywhere(list, name, entity) result(found)
    type(entity_list_t), intent(in) :: list !! the entities
    character(len=*), intent(in) :: name    !! the name, in lowercase
    character(len=*), intent(in) :: entity  !! the class, in lowercase
    integer :: k

    found = 0
    k = index_find(list%names, name)
    do while (k > 0)
        if (matches(list, k, name, entity)) then
            found = k
            return
        end if
        k = list%next_named(k)
    end do
end function find_anywhere

Graphs

Calls

Called by