emit_range Subroutine

private subroutine emit_range(w, src, tokens, first, last)

Append tokens unchanged.

Arguments

Type IntentOptional Attributes Name
type(writer_t), intent(inout) :: w

the output and the alignment state

character(len=*), intent(in) :: src

the source text

type(token_list_t), intent(in) :: tokens

its tokens

integer, intent(in) :: first

the tokens first:last to append

integer, intent(in) :: last

the tokens first:last to append


Calls

proc~~emit_range~~CallsGraph proc~emit_range emit_range proc~put put proc~emit_range->proc~put proc~token_text token_text proc~emit_range->proc~token_text proc~builder_append string_builder_t%builder_append proc~put->proc~builder_append proc~utf8_width utf8_width proc~put->proc~utf8_width

Called by

proc~~emit_range~~CalledByGraph proc~emit_range emit_range proc~emit_comment_line emit_comment_line proc~emit_comment_line->proc~emit_range proc~emit_fypp_line emit_fypp_line proc~emit_fypp_line->proc~emit_range proc~emit_statement emit_statement proc~emit_statement->proc~emit_range proc~layout layout proc~layout->proc~emit_range proc~layout->proc~emit_comment_line proc~layout->proc~emit_fypp_line proc~layout->proc~emit_statement proc~format_pass format_pass proc~format_pass->proc~layout proc~format_text format_text proc~format_text->proc~format_pass proc~relayout relayout proc~format_text->proc~relayout proc~relayout->proc~format_pass proc~process_text process_text proc~process_text->proc~format_text proc~process_file process_file proc~process_file->proc~process_text proc~process_stdin process_stdin proc~process_stdin->proc~process_text proc~run run proc~run->proc~process_file proc~run->proc~process_stdin

Source Code

subroutine emit_range(w, src, tokens, first, last)
    !! Append tokens unchanged.
    type(writer_t), intent(inout) :: w         !! the output and the alignment state
    character(len=*), intent(in) :: src        !! the source text
    type(token_list_t), intent(in) :: tokens   !! its tokens
    integer, intent(in) :: first, last         !! the tokens `first:last` to append
    integer :: j
    do j = first, last
        call put(w, token_text(src, tokens%tok(j)))
    end do
end subroutine emit_range