fdoc

functiontop_levelelementalprivate

elemental logical function top_level(kind)

True if a link to kind can name it from anywhere in the project.

Arguments

NameTypeIntentAttributesDescription
kindintegerin

the kind of entity

Result

NameTypeAttributesDescription
top_levellogical

Source

Show the code
elemental logical function top_level(kind)
    integer, intent(in) :: kind     !! the kind of entity

    select case (kind)
    case (E_MODULE, E_SUBMODULE, E_TYPE, E_SUBROUTINE, E_FUNCTION, E_INTERFACE, E_PROGRAM, E_BLOCKDATA, E_FILE)
        top_level = .true.
    case default
        top_level = .false.
    end select
end function top_level

Graphs

Called by