fdoc

typeparsed_type_t

The type part of a declaration.

Components

NameTypeAttributesDefaultDescription
kindcharacter(len=:)allocatable

the kind, if any

oklogical.false.

false if this is not a type

prototype(string_t)allocatabledimension(:)

the type or interface name and its arguments, if any

restcharacter(len=:)allocatable

what follows the type

strlencharacter(len=:)allocatable

the character length, if any

vartypecharacter(len=:)allocatable

the type keyword, in lowercase

Source

Show the code
type, public :: parsed_type_t
    !! The type part of a declaration.
    character(len=:), allocatable :: vartype    !! the type keyword, in lowercase
    character(len=:), allocatable :: kind       !! the kind, if any
    character(len=:), allocatable :: strlen     !! the character length, if any
    type(string_t), allocatable :: proto(:)     !! the type or interface name and its arguments, if any
    character(len=:), allocatable :: rest       !! what follows the type
    logical :: ok = .false.                     !! false if this is not a type
end type parsed_type_t