Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mununki committed Jun 26, 2023
1 parent 85e4bf8 commit 119b1dc
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions jscomp/syntax/src/res_printer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -705,13 +705,12 @@ and printModuleBinding ~state ~isRec moduleBinding cmtTbl i =
in
let modExprDoc, modConstraintDoc =
match moduleBinding.pmb_expr with
| {pmod_desc = Pmod_constraint (modExpr, modType)} ->
if
ParsetreeViewer.hasAwaitAttribute moduleBinding.pmb_expr.pmod_attributes
then (printModExpr ~state moduleBinding.pmb_expr cmtTbl, Doc.nil)
else
( printModExpr ~state modExpr cmtTbl,
Doc.concat [Doc.text ": "; printModType ~state modType cmtTbl] )
| {pmod_desc = Pmod_constraint (modExpr, modType)}
when not
(ParsetreeViewer.hasAwaitAttribute
moduleBinding.pmb_expr.pmod_attributes) ->
( printModExpr ~state modExpr cmtTbl,
Doc.concat [Doc.text ": "; printModType ~state modType cmtTbl] )
| modExpr -> (printModExpr ~state modExpr cmtTbl, Doc.nil)
in
let modName =
Expand Down

0 comments on commit 119b1dc

Please sign in to comment.