Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing functions to pprintast (binding, longindent, payload) #542

Merged
merged 2 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading