Module Jkind.ViolationSource
Source
type violation = Jkind0.Violation.violation = | Not_a_subjkind : (Allowance.allowed * 'r1) Types.jkind * ('l * 'r2) Types.jkind * Sub_failure_reason.t list -> violation| No_intersection : 'd Types.jkind * ('l * Allowance.allowed) Types.jkind -> violation
Set ?missing_cmi to mark t as having arisen from a missing cmi
Source
val report_with_offender :
offender:(Ocaml_utils.Format_doc.formatter -> unit) ->
Env.t ->
Ocaml_utils.Format_doc.formatter ->
t ->
unitPrints a violation and the thing that had an unexpected jkind (offender, which you supply an arbitrary printer for).
Source
val report_with_offender_sort :
offender:(Ocaml_utils.Format_doc.formatter -> unit) ->
Env.t ->
Ocaml_utils.Format_doc.formatter ->
t ->
unitLike report_with_offender, but additionally prints that the issue is that a representable jkind was expected.
Simpler version of report_with_offender for when the thing that had an unexpected jkind is available as a string.