We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2592542 commit cba0e62Copy full SHA for cba0e62
res_syntax/src/res_printer.ml
@@ -710,6 +710,11 @@ and printModuleBinding ~state ~isRec moduleBinding cmtTbl i =
710
Doc.concat [Doc.text ": "; printModType ~state modType cmtTbl] )
711
| modExpr -> (printModExpr ~state modExpr cmtTbl, Doc.nil)
712
in
713
+ let modExprDoc =
714
+ if ParsetreeViewer.hasAwaitAttribute moduleBinding.pmb_expr.pmod_attributes
715
+ then Doc.concat [Doc.text "await "; modExprDoc]
716
+ else modExprDoc
717
+ in
718
let modName =
719
let doc = Doc.text moduleBinding.pmb_name.Location.txt in
720
printComments doc cmtTbl moduleBinding.pmb_name.loc
0 commit comments