@@ -1061,14 +1061,16 @@ module private PrintTypes =
10611061 nameL ^^ wordL " :" ^^ tauL
10621062
10631063
1064- let layoutPrettyTypeWithPrec prec denv typ =
1064+
1065+ let layoutPrettyType denv typ =
10651066 let _ , typ , cxs = PrettyTypes.PrettifyTypes1 denv.g typ
10661067 let env = SimplifyTypes.CollectInfo true [ typ] cxs
10671068 let cxsL = layoutConstraintsWithInfo denv env env.postfixConstraints
1068- layoutTypeWithInfoAndPrec denv env prec typ --- cxsL
1069+ layoutTypeWithInfoAndPrec denv env 2 typ --- cxsL
10691070
1070- let layoutPrettyType denv typ = layoutPrettyTypeWithPrec 2 denv typ
1071- let layoutPrettyTypeHighPrec denv typ = layoutPrettyTypeWithPrec 5 denv typ
1071+ let layoutPrettyTypeNoCx denv typ =
1072+ let _ , typ , _cxs = PrettyTypes.PrettifyTypes1 denv.g typ
1073+ layoutTypeWithInfoAndPrec denv SimplifyTypes.typeSimplificationInfo0 5 typ
10721074
10731075/// Printing TAST objects
10741076module private PrintTastMemberOrVals =
@@ -1881,7 +1883,7 @@ let isGeneratedExceptionField pos f = TastDefinitionPrinting.isGeneratedExce
18811883let stringOfTyparConstraint denv tpc = stringOfTyparConstraints denv [ tpc]
18821884let stringOfTy denv x = x |> PrintTypes.layoutType denv |> showL
18831885let prettyStringOfTy denv x = x |> PrintTypes.layoutPrettyType denv |> showL
1884- let prettyStringOfTyHighPrec denv x = x |> PrintTypes.layoutPrettyTypeHighPrec denv |> showL
1886+ let prettyStringOfTyNoCx denv x = x |> PrintTypes.layoutPrettyTypeNoCx denv |> showL
18851887let stringOfRecdField denv x = x |> TastDefinitionPrinting.layoutRecdField false denv |> showL
18861888let stringOfUnionCase denv x = x |> TastDefinitionPrinting.layoutUnionCase denv ( wordL " |" ) |> showL
18871889let stringOfExnDef denv x = x |> TastDefinitionPrinting.layoutExnDefn denv |> showL
0 commit comments