1234567891011121314151617181920212223242526272829303132333435(**************************************************************************)(* *)(* OCamlFormat *)(* *)(* Copyright (c) Facebook, Inc. and its affiliates. *)(* *)(* This source code is licensed under the MIT license found in *)(* the LICENSE file in the root directory of this source tree. *)(* *)(**************************************************************************)openMigrate_astmoduleT=structtypet={txt:string;loc:Location.t}letloct=t.loclettxtt=t.txtletcreatetxtloc={txt;loc}letcompare=Comparable.lexicographic[Comparable.liftString.compare~f:txt;Comparable.liftLocation.compare~f:loc]letsexp_of_t{txt;loc}=Sexp.Atom(Format.asprintf"%s %a"txtMigrate_ast.Location.fmtloc)endincludeTincludeComparator.Make(T)typepos=Before|Within|After