diff --git a/CHANGES.md b/CHANGES.md index 85bc9789..f1c72af5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -14,6 +14,8 @@ details. ### Other changes +- Add `Pprintast.binding`, `longident` and `payload` (#542, @mattiasdrp) + - Fix `deriving_inline` round-trip check so that it works with 5.01 <-> 5.02 migrations (#519, @NathanReb) diff --git a/astlib/pprintast.ml b/astlib/pprintast.ml index 51316cca..d27f4ddb 100644 --- a/astlib/pprintast.ml +++ b/astlib/pprintast.ml @@ -1756,3 +1756,5 @@ let module_type = module_type reset_ctxt let signature_item = signature_item reset_ctxt let structure_item = structure_item reset_ctxt let type_declaration = type_declaration reset_ctxt +let binding = binding reset_ctxt +let payload = payload reset_ctxt diff --git a/astlib/pprintast.mli b/astlib/pprintast.mli index 65e22173..1bed8b91 100644 --- a/astlib/pprintast.mli +++ b/astlib/pprintast.mli @@ -26,6 +26,9 @@ val pattern : Format.formatter -> Parsetree.pattern -> unit val signature : Format.formatter -> Parsetree.signature -> unit val structure : Format.formatter -> Parsetree.structure -> unit val string_of_structure : Parsetree.structure -> string +val binding : Format.formatter -> Parsetree.value_binding -> unit +val longident : Format.formatter -> Longident.t -> unit +val payload : Format.formatter -> Parsetree.payload -> unit (* Added in the ppxlib copy *) val class_expr : Format.formatter -> Parsetree.class_expr -> unit