Skip to content

Commit

Permalink
Expose a couple more functions from Pprintast (#1731)
Browse files Browse the repository at this point in the history
This way they can be used by Ppxlib
  • Loading branch information
antalsz authored Aug 11, 2023
1 parent a1dd43a commit cecb05e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ocaml/parsing/pprintast.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2003,7 +2003,9 @@ let class_field = class_field reset_ctxt
let class_type_field = class_type_field reset_ctxt
let class_expr = class_expr reset_ctxt
let class_type = class_type reset_ctxt
let class_signature = class_signature reset_ctxt
let structure_item = structure_item reset_ctxt
let signature_item = signature_item reset_ctxt
let binding = binding reset_ctxt
let payload = payload reset_ctxt
let type_declaration = type_declaration reset_ctxt
3 changes: 3 additions & 0 deletions ocaml/parsing/pprintast.mli
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ val structure_item: Format.formatter -> Parsetree.structure_item -> unit
val signature_item: Format.formatter -> Parsetree.signature_item -> unit
val binding: Format.formatter -> Parsetree.value_binding -> unit
val payload: Format.formatter -> Parsetree.payload -> unit

val class_signature: Format.formatter -> Parsetree.class_signature -> unit
val type_declaration: Format.formatter -> Parsetree.type_declaration -> unit

0 comments on commit cecb05e

Please sign in to comment.