Module Expansion_context.Extension

type t

Type of expansion contexts for extensions

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 omp_config : t -> Migrate_parsetree.Driver.config

Return the ocaml-migrate-parsetree configuration for the given expansion context

val with_loc_and_path : (loc:Ppxlib.Location.t -> path:string -> 'a) -> ctxt:t -> 'a

Wrap a fun ~loc ~path into a fun ~ctxt