Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
io.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
module CallBack = struct type t = { log_error : string -> string -> unit ; send_diagnostics : uri:string -> version:int -> Types.Diagnostic.t list -> unit } let default = { log_error = (fun _ _ -> ()) ; send_diagnostics = (fun ~uri:_ ~version:_ _ -> ()) } let cb = ref default let set t = cb := t end module Log = struct let error d m = !CallBack.cb.log_error d m end module Report = struct let diagnostics ~uri ~version d = !CallBack.cb.send_diagnostics ~uri ~version d end