package asai

  1. Overview
  2. Docs
type t

The type of all message codes.

val default_severity : t -> Diagnostic.severity

The default severity of the code. The severity of a message is about whether the message is an error or a warning, etc. To clarify, it is about how serious the message is to the end user, not whether the program should stop or continue. The severity may be overwritten at the time of issuing a message to the end user.

val to_string : t -> string

A concise, ideally Google-able string representation of each message code. Detailed or long descriptions of code should be avoided. For example, E001 works better than type-checking error. The shorter, the better.

OCaml

Innovation. Community. Security.