stmt_info_t Derived Type

type, public :: stmt_info_t

What a statement does to the block structure, as found by classify_statement.


Inherited by

type~~stmt_info_t~~InheritedByGraph type~stmt_info_t stmt_info_t type~structure_t structure_t type~structure_t->type~stmt_info_t info

Components

Type Visibility Attributes Name Initial
integer, public :: construct = C_NONE

the construct opened, continued or closed: one of the C_* constants

integer, public :: do_label = 0

for do 10 ...: the label of the statement that ends the loop

integer, public :: label = 0

statement label, or 0

character(len=:), public, allocatable :: name

construct name, as in outer: do

integer, public :: role = ROLE_NONE

ROLE_OPEN, ROLE_MIDDLE, ROLE_CLOSE, or ROLE_NONE for other statements


Source Code

type, public :: stmt_info_t
    !! What a statement does to the block structure, as found by `classify_statement`.
    integer :: role = ROLE_NONE      !! `ROLE_OPEN`, `ROLE_MIDDLE`, `ROLE_CLOSE`, or `ROLE_NONE` for other statements
    integer :: construct = C_NONE    !! the construct opened, continued or closed: one of the `C_*` constants
    integer :: label = 0         !! statement label, or 0
    integer :: do_label = 0      !! for `do 10 ...`: the label of the statement that ends the loop
    character(len=:), allocatable :: name  !! construct name, as in `outer: do`
end type stmt_info_t