| 1 |
[@@@alert unstable "The API of this library is not stable and may change without notice."] |
| 2 |
|
| 3 |
type code = |
| 4 |
{ code : int |
| 5 |
; name : string |
| 6 |
} |
| 7 |
|
| 8 |
type source = |
| 9 |
| Code of code |
| 10 |
| Alert of string |
| 11 |
|
| 12 |
type lines = |
| 13 |
| Single of int |
| 14 |
| Range of int * int |
| 15 |
|
| 16 |
type loc = |
| 17 |
{ chars : (int * int) option |
| 18 |
; lines : lines |
| 19 |
; path : string |
| 20 |
} |
| 21 |
|
| 22 |
type severity = |
| 23 |
| Error of source option |
| 24 |
| Warning of code |
| 25 |
| Alert of |
| 26 |
{ name : string |
| 27 |
; source : string |
| 28 |
} |
| 29 |
|
| 30 |
type report = |
| 31 |
{ loc : loc |
| 32 |
; severity : severity |
| 33 |
; message : string |
| 34 |
; related : (loc * string) list |
| 35 |
} |
| 36 |
|
| 37 |
val dyn_of_report : report -> Dyn.t |
| 38 |
val dyn_of_raw : [ `Loc of loc | `Message of string ] list -> Dyn.t |
| 39 |
val parse_raw : string -> [ `Loc of loc | `Message of string ] list |
| 40 |
val parse : string -> report list |