Module SemDiffLib.Diff

module F = Stdlib.Format
type t =
  1. | LineAdded of int
  2. | LineRemoved of int
val append_removed_line : int option -> t list -> t list
val append_added_line : int option -> t list -> t list
val append_removed_lines : int option -> int option -> t list -> t list
val append_added_lines : int option -> int option -> t list -> t list
val pp : F.formatter -> previous_content:string -> current_content:string -> t list -> unit
type explicit
val pp_explicit : F.formatter -> explicit -> unit
val dummy_explicit : explicit
val pair_to_json_with_outcome : previous_file:string -> current_file:string -> outcome:string -> Yojson.Safe.t
val pair_to_json : previous_file:string -> current_file:string -> explicit list -> Yojson.Safe.t
val write_json : previous_file:string -> current_file:string -> out_path:string -> explicit list -> unit
val write_from_json : json_path:string -> out_path:string -> unit
val gen_explicit_diffs : previous_content:string -> current_content:string -> t list -> explicit list