package elpi

  1. Overview
  2. Docs

Module Compiler_data.ErrorsSource

Sourcetype t = {
  1. max_errors : int;
  2. mutable count : int;
  3. mutable errors : Elpi_util.Util.error list;
  4. mutable skipped : bool;
  5. mutable warnings : Elpi_util.Util.warning list;
}
Sourceval make : ?max_errors:??? -> unit -> t
Sourceval is_full : t -> bool
Sourceval add : t -> Elpi_util.Util.error -> unit
Sourceval list : t -> Elpi_util.Util.error list
Sourceval warn : t -> component:string -> id:Elpi_util.Util.warning_id -> ?loc:??? -> string -> unit
Sourceval warnings : t -> Elpi_util.Util.warning list
Sourceval protect : t -> default:'a -> (unit -> 'a) -> 'a
Sourceval catch_error : t -> ('a -> 'b) -> 'a -> 'b option
Sourceval report_error : t -> (?loc:??? -> string -> unit) -> ?loc:??? -> string -> unit
Sourceval protect_fold_left : errs:t -> ('a -> 'b -> 'a) -> 'a -> 'b list -> 'a
Sourceval protect_list_map : errs:t -> ('a -> 'b) -> 'a list -> 'b list
Sourceval protect_fMap_fold : errs:t -> (F.Map.key -> 'a -> 'b -> 'b) -> 'a F.Map.t -> 'b -> 'b
Sourceval protect_list_filter : errs:t -> ('a -> bool) -> 'a list -> 'a list