Diagnostic message support for TOML Fortran
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(level_enum), | public, | parameter | :: | toml_level | = | level_enum() |
Actual enumerator values |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_diagnostic), | intent(in) | :: | diag | |||
character(len=*), | intent(in) | :: | input | |||
type(toml_terminal), | intent(in) | :: | color |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | input | |||
type(toml_terminal), | intent(in) | :: | color | |||
character(len=*), | intent(in), | optional | :: | source |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | input | |||
type(toml_label), | intent(in) | :: | label | |||
type(toml_terminal), | intent(in) | :: | color | |||
character(len=*), | intent(in), | optional | :: | source |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | input | |||
type(toml_label), | intent(in) | :: | label(:) | |||
type(toml_terminal), | intent(in) | :: | color | |||
character(len=*), | intent(in), | optional | :: | source |
Create new diagnostic message
Type | Intent | Optional | 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 |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | level | |||
integer, | intent(in) | :: | first | |||
integer, | intent(in) | :: | last | |||
character(len=*), | intent(in), | optional | :: | text | ||
logical, | intent(in), | optional | :: | primary |
Definition of diagnostic message
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 |
private pure function new_diagnostic (level, message, source, label) | Create new diagnostic message |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | first |
First and last character of message |
|||
integer, | public | :: | last |
First and last character of message |
|||
integer, | public | :: | level |
Level of message |
|||
logical, | public | :: | primary |
Primary message |
|||
character(len=:), | public, | allocatable | :: | source |
Identifier of context |
||
character(len=:), | public, | allocatable | :: | text |
Message text |
private pure function new_label (level, first, last, text, primary) |