package grace
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=d49754224206de44855590848b3a5a6cc1d5c46cf99a4e5810ca3041d436a28e
sha512=2984b5a6284bf8bbd05419cf850c15c34bc19c19f0c8928b83cc1be1c0bfc84aafef6d992e7435c2f48ba361a6f3aab679abd02f0e6472361c8cec7d497bc405
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.