package comby

  1. Overview
  2. Docs
A tool for structural code search and replace that supports ~every language

Install

Dune Dependency

Authors

Maintainers

Sources

comby-kernel.1.7.0.tar.gz
md5=ee6556d8bd9b25ed0445ebe23862e48a
sha512=e6386c8ce5ef14bbcab2b0ead5b1edc39375438f56330d5f02e81e467afe6623a7e299f97f26008d77bbc62850c6dc63a7cbe5b81671b5183ff3adeee5946bb3

doc/comby.patdiff_kernel/Patdiff_kernel/Configuration/index.html

Module Patdiff_kernel.ConfigurationSource

Sourceval default_context : int

Default amount of context shown around each change in the diff

The following constants were all chosen empirically.

Sourceval default_line_big_enough : int

Default cutoff for line-level semantic cleanup. Any match of default_line_big_enough or 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.

Sourceval default_word_big_enough : int

Analogous to default_line_big_enough, but for word-level refinement

Sourceval too_short_to_split : int

Governs the behavior of split_for_readability. We will only split ranges around matches of size greater than too_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.

Sourceval warn_if_no_trailing_newline_in_both_default : bool
Sourcetype t = private {
  1. output : Output.t;
  2. rules : Format.Rules.t;
  3. ext_cmp : string option;
  4. float_tolerance : Core_kernel.Percent.t option;
  5. produce_unified_lines : bool;
  6. unrefined : bool;
  7. keep_ws : bool;
  8. split_long_lines : bool;
  9. interleave : bool;
  10. assume_text : bool;
  11. context : int;
  12. line_big_enough : int;
  13. word_big_enough : int;
  14. shallow : bool;
  15. quiet : bool;
  16. double_check : bool;
  17. mask_uniques : bool;
  18. prev_alt : string option;
  19. next_alt : string option;
  20. location_style : Format.Location_style.t;
  21. warn_if_no_trailing_newline_in_both : bool;
}
Sourceval compare : t -> t -> int
Sourceval warn_if_no_trailing_newline_in_both : t -> bool
Sourceval location_style : t -> Format.Location_style.t
Sourceval next_alt : t -> string option
Sourceval prev_alt : t -> string option
Sourceval mask_uniques : t -> bool
Sourceval double_check : t -> bool
Sourceval quiet : t -> bool
Sourceval shallow : t -> bool
Sourceval word_big_enough : t -> int
Sourceval line_big_enough : t -> int
Sourceval context : t -> int
Sourceval assume_text : t -> bool
Sourceval interleave : t -> bool
Sourceval split_long_lines : t -> bool
Sourceval keep_ws : t -> bool
Sourceval unrefined : t -> bool
Sourceval produce_unified_lines : t -> bool
Sourceval float_tolerance : t -> Core_kernel.Percent.t option
Sourceval ext_cmp : t -> string option
Sourceval rules : t -> Format.Rules.t
Sourceval output : t -> Output.t
Sourcemodule Fields : sig ... end
Sourceval sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
include Core_kernel.Invariant.S with type t := t
Sourceval invariant : t -> unit
Sourceval 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 -> t

Raises if invariant t fails.

Sourceval 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 -> t
Sourceval default : t
Sourcemodule Private : sig ... end
OCaml

Innovation. Community. Security.