Module Ppxlib__Expansion_context.Extension
val extension_point_loc : t -> Ppxlib.Location.t
Return the location of the extension point being expanded
val code_path : t -> Ppxlib.Code_path.t
Return the code path for the given context
val tool_name : t -> string
Can be used within a ppx preprocessor to know which tool is calling it
"ocamlc"
,"ocamlopt"
,"ocamldep"
,"ocaml"
, ... .
val with_loc_and_path : (loc:Ppxlib.Location.t -> path:string -> 'a) -> ctxt:t -> 'a
Wrap a
fun ~loc ~path
into afun ~ctxt