fdoc

subroutineimplementation_lineprivate

subroutine implementation_line(site, id, b)

Write where the interface and the body of a separate module procedure are.

Arguments

NameTypeIntentAttributesDescription
sitetype(site_t)in

the site

idintegerin

the procedure

btype(buffer_t)inout

the HTML

Calls

Called by

Source

Show the code
subroutine implementation_line(site, id, b)
    type(site_t), intent(in) :: site        !! the site
    integer, intent(in) :: id               !! the procedure
    type(buffer_t), intent(inout) :: b      !! the HTML

    associate (e => site%p%list%box(id)%e)
        if (merged_body(site, id) > 0) then
            call add(b, '<div class="meta"><span>interface in ')
            call unit_and_file(site, id, b)
            call add(b, '</span><span>implementation in ')
            call unit_and_file(site, e%implements, b)
            call add(b, '</span></div>'//achar(10))
        else if (e%implements > 0) then
            call add(b, '<div class="meta"><span>')
            call add(b, trim(merge('implements    ', 'implemented by', is_separate_body(site%p%list, id)))//' ')
            call link_to(site, e%implements, site%p%list%box(e%implements)%e%name, b)
            call add(b, ' in ')
            call unit_and_file(site, e%implements, b)
            call add(b, '</span></div>'//achar(10))
        end if
    end associate
end subroutine implementation_line