toml_diagnostic Derived Type

type, public :: toml_diagnostic

Definition of diagnostic message


Components

Type Visibility Attributes Name Initial
type(toml_label), public, allocatable :: label(:)

Messages associated with this diagnostic

integer, public :: level

Level of message

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

Primary message

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

Context of the diagnostic source


Constructor

public interface toml_diagnostic

  • private pure function new_diagnostic(level, message, source, label) result(new)

    Create new diagnostic message

    Arguments

    Type IntentOptional Attributes Name
    integer, intent(in) :: level

    Level of message

    character(len=*), intent(in), optional :: message

    Primary message

    character(len=*), intent(in), optional :: source

    Context of the diagnostic source

    type(toml_label), intent(in), optional :: label(:)

    Messages associated with this diagnostic

    Return Value type(toml_diagnostic)


Source Code

   type :: toml_diagnostic
      !> Level of message
      integer :: level
      !> Primary message
      character(len=:), allocatable :: message
      !> Context of the diagnostic source
      character(len=:), allocatable :: source
      !> Messages associated with this diagnostic
      type(toml_label), allocatable :: label(:)
   end type toml_diagnostic