Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Expose printPattern #595

Merged
merged 2 commits into from
Jul 12, 2022
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
1 change: 1 addition & 0 deletions src/res_printer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5401,6 +5401,7 @@ and printExtensionConstructor ~customLayout
let printTypeParams = printTypeParams ~customLayout:0
let printTypExpr = printTypExpr ~customLayout:0
let printExpression = printExpression ~customLayout:0
let printPattern = printPattern ~customLayout:0

let printImplementation ~width (s : Parsetree.structure) ~comments =
let cmtTbl = CommentTable.make () in
Expand Down
3 changes: 3 additions & 0 deletions src/res_printer.mli
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ val addParens : Res_doc.t -> Res_doc.t

val printExpression : Parsetree.expression -> Res_comments_table.t -> Res_doc.t

val printPattern : Parsetree.pattern -> Res_comments_table.t -> Res_doc.t
[@@live]

val printStructure : Parsetree.structure -> Res_comments_table.t -> Res_doc.t
[@@live]

Expand Down