package ppxlib

  1. Overview
  2. Docs
Standard infrastructure for ppx rewriters

Install

Dune Dependency

Authors

Maintainers

Sources

ppxlib-0.32.1.tbz
sha256=9dbad8bcb1c8b4f3df3f58bca60a5ed23d86531f0da34b4196c86bd585c09d7f
sha512=7b93b622b119478dde03adcf4993e73ea937c91c280e453ccee631c682d8589ecb31841f11d6a14966239954e22e000da8afbe25a0f089532c7210b698c52553

doc/ppxlib.astlib/Astlib/Location/Error/index.html

Module Location.ErrorSource

Sourcetype t

The location error type. It contains a located main message and a (possibly empty) list of located submessages.

Sourceval is_well_formed : t -> bool

A location error constructed via make is always well-formed. A malformed location error is a value of type location_report on compilers >= 4.08, whose kind is different from Report_error. Notice that location_report does not explicitly form part of Astlib.

Sourceval main_msg : t -> string loc

Get the located error main message.

Sourceval sub_msgs : t -> string loc list

Get the located error sub-messages.

Sourceval set_main_msg : t -> string -> t

Set the text of the error's main message. The location stays as is.

Sourceval set_main_loc : t -> t -> t

Set the location of the error's main message. The text satys as is.

Sourceval make : sub:string loc list -> string loc -> t

Construct a location error.

Sourceval of_exn : exn -> t option

Turn an exception into a location error, if possible.

OCaml

Innovation. Community. Security.