set Subroutine

private pure subroutine set(info, role, construct)

Set the role and construct of info.

Arguments

Type IntentOptional Attributes Name
type(stmt_info_t), intent(inout) :: info

the classification to update

integer, intent(in) :: role

one of the ROLE_* constants

integer, intent(in) :: construct

one of the C_* constants


Called by

proc~~set~~CalledByGraph proc~set set proc~classify_statement classify_statement proc~classify_statement->proc~set proc~analyze_structure analyze_structure proc~analyze_structure->proc~classify_statement proc~format_pass format_pass proc~format_pass->proc~analyze_structure 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

pure subroutine set(info, role, construct)
    !! Set the role and construct of `info`.
    type(stmt_info_t), intent(inout) :: info   !! the classification to update
    integer, intent(in) :: role                !! one of the `ROLE_*` constants
    integer, intent(in) :: construct           !! one of the `C_*` constants
    info%role = role
    info%construct = construct
end subroutine set