package ocamlformat

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include Non_overlapping_interval_tree.S with type itv = Ocaml_common.Location.t
type t
val of_list : itv Ocamlformat_stdlib.list -> t

If there are duplicates in the input list, earlier elements will be ancestors of later elements.

val children : t -> itv -> itv Ocamlformat_stdlib.list
val dump : t -> Fmt.t

Debug: dump debug representation of tree.

Use Ast_mapper to collect all locs in ast, and create a tree of them.

OCaml

Innovation. Community. Security.