package ppxlib

  1. Overview
  2. Docs
Standard infrastructure for ppx rewriters

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ppxlib-0.35.0.tbz
sha256=d9d959fc9f84260487e45684dc741898a92fc5506b61a7f5cac65d21832db925
sha512=e428b1e3b89261c7efdaa18016264d1afbf067cb9b0d41124b04796c2487ac7ca8ee9a24a60d56f20d1774cb44aaa9ecf1512f17455812ba8d62d4ef93616ee7

doc/src/ppxlib/loc.ml.html

Source file loc.ml

1
2
3
4
5
6
7
8
open! Import

type 'a t = 'a loc = { txt : 'a; loc : Location.t }

let txt t = t.txt
let loc t = t.loc
let make ~loc txt = { loc; txt }
let map t ~f = { t with txt = f t.txt }