Expansion_context.Deriverval derived_item_loc : t -> Location.tReturn the location of the item to which the deriver is being applied
val code_path : t -> Code_path.tReturn the code path for the given context
val tool_name : t -> stringCan be used within a ppx preprocessor to know which tool is calling it "ocamlc", "ocamlopt", "ocamldep", "ocaml", ... .
val with_loc_and_path : (loc:Location.t -> path:string -> 'a) -> ctxt:t -> 'aWrap a fun ~loc ~path into a fun ~ctxt
val inline : t -> boolWhether the derived code is going to be inlined in the source