@@ -428,7 +428,9 @@ let printPolyVarIdent txt =
428428 if isValidNumericPolyvarNumber txt then Doc. text txt
429429 else
430430 match classifyIdentContent ~allow Uident:true txt with
431- | ExoticIdent -> Doc. concat [Doc. text " \" " ; Doc. text (Ext_ident. unwrap_exotic txt); Doc. text " \" " ]
431+ | ExoticIdent ->
432+ Doc. concat
433+ [Doc. text " \" " ; Doc. text (Ext_ident. unwrap_exotic txt); Doc. text " \" " ]
432434 | NormalIdent -> (
433435 match txt with
434436 | "" -> Doc. concat [Doc. text " \" " ; Doc. text txt; Doc. text " \" " ]
@@ -455,9 +457,7 @@ let printLident l =
455457 | Some txts ->
456458 Doc. concat
457459 [
458- Doc. join ~sep: Doc. dot (List. map Doc. text txts);
459- Doc. dot;
460- Doc. text txt;
460+ Doc. join ~sep: Doc. dot (List. map Doc. text txts); Doc. dot; Doc. text txt;
461461 ]
462462 | None -> Doc. text " printLident: Longident.Lapply is not supported"
463463 in
@@ -1597,8 +1597,7 @@ and printTypExpr ~(state : State.t) (typExpr : Parsetree.core_type) cmtTbl =
15971597 let renderedType =
15981598 match typExpr.ptyp_desc with
15991599 | Ptyp_any -> Doc. text " _"
1600- | Ptyp_var var ->
1601- Doc. concat [Doc. text " '" ; Doc. text var]
1600+ | Ptyp_var var -> Doc. concat [Doc. text " '" ; Doc. text var]
16021601 | Ptyp_extension extension ->
16031602 printExtension ~state ~at ModuleLvl:false extension cmtTbl
16041603 | Ptyp_alias (typ , alias ) ->
@@ -1873,10 +1872,8 @@ and printTypeParameter ~state (attrs, lbl, typ) cmtTbl =
18731872 let label =
18741873 match lbl with
18751874 | Asttypes. Nolabel -> Doc. nil
1876- | Labelled lbl ->
1877- Doc. concat [Doc. text " ~" ; Doc. text lbl; Doc. text " : " ]
1878- | Optional lbl ->
1879- Doc. concat [Doc. text " ~" ; Doc. text lbl; Doc. text " : " ]
1875+ | Labelled lbl -> Doc. concat [Doc. text " ~" ; Doc. text lbl; Doc. text " : " ]
1876+ | Optional lbl -> Doc. concat [Doc. text " ~" ; Doc. text lbl; Doc. text " : " ]
18801877 in
18811878 let optionalIndicator =
18821879 match lbl with
@@ -4719,12 +4716,7 @@ and printArgument ~state (argLbl, arg) cmtTbl =
47194716 in
47204717 let doc =
47214718 Doc. concat
4722- [
4723- Doc. tilde;
4724- Doc. text lbl;
4725- Doc. text " : " ;
4726- printTypExpr ~state typ cmtTbl;
4727- ]
4719+ [Doc. tilde; Doc. text lbl; Doc. text " : " ; printTypExpr ~state typ cmtTbl]
47284720 in
47294721 printComments doc cmtTbl loc
47304722 (* ~a? (optional lbl punned)*)
0 commit comments