12345678910111213141516171819202122232425262728293031openPpxlibletextt~localityextension_kind=Extension.declare_with_path_arg(* Prefix with the name of the ppx to help avoid clashes with other ppxes. *)("let."^Ppx_let_expander.ext_full_namet~localityextension_kind)Extension.Context.expressionAst_pattern.(single_expr_payload__)(fun~loc:_~path:_~argexpr->Ppx_let_expander.expandtextension_kind~modul:arg~localityexpr);;openPpx_let_expandermoduleList=structincludeListletconcat_maplist~f=List.concat_mapflistletmaplist~f=List.mapflistendlet()=letextensions=List.concat_map[bind;map]~f:(funt->List.concat_mapPpx_let_expander.Locality.all~f:(funlocality->List.mapExtension_kind.[default;default_open;n;n_open;z;z_open;nz;nz_open]~f:(funkind->extt~localitykind)))inDriver.register_transformation"let"~extensions;;