Module Patdiff_kernel.Configuration
val default_line_big_enough : intDefault cutoff for line-level semantic cleanup. Any match of
default_line_big_enoughor more will not be deleted, even if it's surrounded by large inserts and deletes. Raising this quantity can only decrease the number of matches, and lowering it can only increase the number of matches.
val default_word_big_enough : intAnalogous to
default_line_big_enough, but for word-level refinement
val too_short_to_split : intGoverns the behavior of
split_for_readability. We will only split ranges around matches of size greater thantoo_short_to_split. Note that this should always be at least 1, otherwise we will split on a single `Newline token. Raising this quantity will result in less ranges being split, and setting it to infinity is the same as passing in~interleave:false.
type t= private{output : Output.t;rules : Format.Rules.t;ext_cmp : string option;float_tolerance : Core_kernel.Percent.t option;produce_unified_lines : bool;unrefined : bool;keep_ws : bool;split_long_lines : bool;interleave : bool;assume_text : bool;context : int;line_big_enough : int;word_big_enough : int;shallow : bool;quiet : bool;double_check : bool;mask_uniques : bool;prev_alt : string option;next_alt : string option;location_style : Format.Location_style.t;warn_if_no_trailing_newline_in_both : bool;}
val compare : t -> t -> intval warn_if_no_trailing_newline_in_both : t -> boolval location_style : t -> Format.Location_style.tval next_alt : t -> string optionval prev_alt : t -> string optionval mask_uniques : t -> boolval double_check : t -> boolval quiet : t -> boolval shallow : t -> boolval word_big_enough : t -> intval line_big_enough : t -> intval context : t -> intval assume_text : t -> boolval interleave : t -> boolval split_long_lines : t -> boolval keep_ws : t -> boolval unrefined : t -> boolval produce_unified_lines : t -> boolval float_tolerance : t -> Core_kernel.Percent.t optionval ext_cmp : t -> string optionval rules : t -> Format.Rules.tval output : t -> Output.t
module Fields : sig ... endval sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val create_exn : output:Output.t -> rules:Format.Rules.t -> float_tolerance:Core_kernel.Percent.t option -> produce_unified_lines:bool -> unrefined:bool -> keep_ws:bool -> split_long_lines:bool -> interleave:bool -> assume_text:bool -> context:int -> line_big_enough:int -> word_big_enough:int -> shallow:bool -> quiet:bool -> double_check:bool -> mask_uniques:bool -> prev_alt:string option -> next_alt:string option -> location_style:Format.Location_style.t -> warn_if_no_trailing_newline_in_both:bool -> tRaises if
invariant tfails.
val override : ?output:Output.t -> ?rules:Format.Rules.t -> ?float_tolerance:Core_kernel.Percent.t option -> ?produce_unified_lines:bool -> ?unrefined:bool -> ?keep_ws:bool -> ?split_long_lines:bool -> ?interleave:bool -> ?assume_text:bool -> ?context:int -> ?line_big_enough:int -> ?word_big_enough:int -> ?shallow:bool -> ?quiet:bool -> ?double_check:bool -> ?mask_uniques:bool -> ?prev_alt:string option -> ?next_alt:string option -> ?location_style:Format.Location_style.t -> ?warn_if_no_trailing_newline_in_both:bool -> t -> tval default : t
module Private : sig ... end