Item of diagnostic information found in a DiagnosticEvent message.
Item of diagnostic information found in a DiagnosticEvent message.
(category diagnostic)
The category of the diagnostic message, e.g. "error", "warning", or "suggestion".
Returns: string
The category of the diagnostic message, e.g. "error", "warning", or "suggestion". **Returns:** `string`
(code diagnostic)
The error code of the diagnostic message.
Returns: number | undefined
The error code of the diagnostic message. **Returns:** `number | undefined`
(end diagnostic)
The last file location at which the text applies.
Returns: Location
The last file location at which the text applies. **Returns:** `Location`
(related-information diagnostic)
Any related spans the diagnostic may have, such as other locations relevant to an error, such as declarartion sites
Returns: DiagnosticRelatedInformation[] | undefined
Any related spans the diagnostic may have, such as other locations relevant to an error, such as declarartion sites **Returns:** `DiagnosticRelatedInformation[] | undefined`
(reports-deprecated diagnostic)
Returns: {} | undefined
**Returns:** `{} | undefined`
(reports-unnecessary diagnostic)
Returns: {} | undefined
**Returns:** `{} | undefined`
(set-category! diagnostic value)
The category of the diagnostic message, e.g. "error", "warning", or "suggestion".
The category of the diagnostic message, e.g. "error", "warning", or "suggestion".
(set-code! diagnostic value)
The error code of the diagnostic message.
The error code of the diagnostic message.
(set-end! diagnostic value)
The last file location at which the text applies.
The last file location at which the text applies.
(set-related-information! diagnostic value)
Any related spans the diagnostic may have, such as other locations relevant to an error, such as declarartion sites
Any related spans the diagnostic may have, such as other locations relevant to an error, such as declarartion sites
(set-source! diagnostic value)
The name of the plugin reporting the message.
The name of the plugin reporting the message.
(set-start! diagnostic value)
Starting file location at which text applies.
Starting file location at which text applies.
(set-text! diagnostic value)
Text of diagnostic message.
Text of diagnostic message.
(source diagnostic)
The name of the plugin reporting the message.
Returns: string | undefined
The name of the plugin reporting the message. **Returns:** `string | undefined`
(start diagnostic)
Starting file location at which text applies.
Returns: Location
Starting file location at which text applies. **Returns:** `Location`
(text diagnostic)
Text of diagnostic message.
Returns: string
Text of diagnostic message. **Returns:** `string`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close