package grace
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=6948979d6ffb5e596773baead81e9ceef36726d6956261bdd62abb2666a45bfc
sha512=db8b39cc9a77d919ab3123bb4047bb6c672c61db9fc6810951e267b2b113c4ac07266ef57188c6db0c02cb4d43d054204cd66ebc91648dbd1da1228022b0e67b
doc/grace/Grace/Diagnostic/index.html
Module Grace.DiagnosticSource
Diagnostic types and constructors.
The type of format strings associated with messages.
- The input is always a
Format.formatter - The result of
%aand%tprinting functions isunit.
The type of priority. These are used to style the primary and secondary causes of a diagnostic.
type 'code t = {severity : Severity.t;(*The overall severity of the diagnostic.
*)message : Message.t;(*The main message associated with the diagnostic. These should not include control characters (such as the newline character
*)\n). To support compact rendering, the message should be specific enough to make sense on its own, without the additional context provided by labels and notes.code : 'code option;(*The (optional) error code assicoated with the diagnostic
*)labels : Label.t list;(*Labels that describe the cause of the diagnostic. The order of the labels has no meaning, Grace's rendering engine will determine the order they appear.
*)notes : Message.t list;(*Notes that are associated with the primary cause of the diagnostic.
*)
}The type of diagnostics.
val create :
?notes:Message.t list ->
?labels:Label.t list ->
?code:'code ->
Severity.t ->
Message.t ->
'code tcreate severity message constructs a diagnostic with the message.