Skip to content

Commit

Permalink
Merge pull request #542 from mattiasdrp/add-missing-pprintast-functions
Browse files Browse the repository at this point in the history
Add missing functions to pprintast (binding, longindent, payload)
  • Loading branch information
NathanReb authored Dec 10, 2024
2 parents 2414959 + 0089d0f commit f15df48
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 2 additions & 0 deletions astlib/pprintast.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions astlib/pprintast.mli
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f15df48

Please sign in to comment.