package ppxlib
Base library and tools for ppx rewriters
Install
Dune Dependency
Authors
Maintainers
Sources
0.7.0.tar.gz
sha256=278c4dfed19ff3f21e65097e66ce154f47f1bf82098fc494d80536509cfebcd7
md5=8ecc9f9c42245334be543f77900bc1b9
doc/ppxlib/Ppxlib/Location/index.html
Module Ppxlib.Location
Overrides the Location module of OCaml
There are less functions in this module. However the API should be more stable than the Location module of OCaml.
type t = Warnings.loc = {
loc_start : Lexing.position;
loc_end : Lexing.position;
loc_ghost : Base.Bool.t;
}
val in_file : Base.String.t -> t
Return an empty ghost range located in a given file.
val none : t
An arbitrary value of type t
; describes an empty ghost range.
val raise_errorf :
?loc:t ->
('a, Caml.Format.formatter, Base.Unit.t, 'b) format4 ->
'a
Raise a located error. The exception is caught by driver and handled appropriately
val of_lexbuf : Lexing.lexbuf -> t
Return the location corresponding to the last matched regular expression
val report_exception : Caml.Format.formatter -> Base.Exn.t -> Base.Unit.t
Report an exception on the given formatter
val print : Caml.Format.formatter -> t -> Base.Unit.t
Prints File "...", line ..., characters ...-...:
module Error : sig ... end
exception Error of Error.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>