You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letmkValSpec g (tcref:TyconRef)tmty vis slotsig methn ty argData =
886
+
letmkValSpec g (tcref:TyconRef)tmty vis slotsig methn ty argData =
887
887
letm= tcref.Range
888
888
lettps= tcref.Typars m
889
-
letfinal= isUnionTy g tmty || isRecdTy g tmty || isStructTy g tmty
890
-
letmembInfo=match slotsig with None -> nonVirtualMethod tcref | Some slotsig -> slotImplMethod(final, tcref, slotsig)
889
+
letmembInfo=
890
+
match slotsig with
891
+
| None -> nonVirtualMethod tcref
892
+
| Some slotsig ->
893
+
letfinal= isUnionTy g tmty || isRecdTy g tmty || isStructTy g tmty
894
+
slotImplMethod(final, tcref, slotsig)
891
895
letinl= ValInline.Optional
892
896
letargs= ValReprInfo.unnamedTopArg :: argData
893
897
lettopValInfo= Some (ValReprInfo (ValReprInfo.InferTyparInfo tps, args, ValReprInfo.unnamedRetVal))
@@ -899,8 +903,8 @@ let MakeValsForCompareAugmentation g (tcref: TyconRef) =
899
903
lettps= tcref.Typars m
900
904
letvis= tcref.TypeReprAccessibility
901
905
902
-
mkValSpec g tcref tmty vis (Some(mkIComparableCompareToSlotSig g))"CompareTo"(tps +->(mkCompareObjTy g tmty)) unaryArg,
903
-
mkValSpec g tcref tmty vis (Some(mkGenericIComparableCompareToSlotSig g tmty))"CompareTo"(tps +->(mkCompareTy g tmty)) unaryArg
906
+
mkValSpec g tcref tmty vis (Some(mkIComparableCompareToSlotSig g))"CompareTo"(tps +->(mkCompareObjTy g tmty)) unaryArg,
907
+
mkValSpec g tcref tmty vis (Some(mkGenericIComparableCompareToSlotSig g tmty))"CompareTo"(tps +->(mkCompareTy g tmty)) unaryArg
904
908
905
909
letMakeValsForCompareWithComparerAugmentation g (tcref:TyconRef)=
906
910
letm= tcref.Range
@@ -915,15 +919,15 @@ let MakeValsForEqualsAugmentation g (tcref: TyconRef) =
915
919
letvis= tcref.TypeReprAccessibility
916
920
lettps= tcref.Typars m
917
921
918
-
letobjEqualsVal= mkValSpec g tcref tmty vis (Some(mkEqualsSlotSig g))"Equals"(tps +->(mkEqualsObjTy g tmty)) unaryArg
919
-
letnocEqualsVal= mkValSpec g tcref tmty vis (if tcref.Deref.IsExceptionDecl then None else Some(mkGenericIEquatableEqualsSlotSig g tmty))"Equals"(tps +->(mkEqualsTy g tmty)) unaryArg
922
+
letobjEqualsVal= mkValSpec g tcref tmty vis (Some(mkEqualsSlotSig g))"Equals"(tps +->(mkEqualsObjTy g tmty)) unaryArg
923
+
letnocEqualsVal= mkValSpec g tcref tmty vis (if tcref.Deref.IsExceptionDecl then None else Some(mkGenericIEquatableEqualsSlotSig g tmty))"Equals"(tps +->(mkEqualsTy g tmty)) unaryArg
920
924
objEqualsVal, nocEqualsVal
921
925
922
926
letMakeValsForEqualityWithComparerAugmentation g (tcref:TyconRef)=
923
927
let_,tmty = mkMinimalTy g tcref
924
928
letvis= tcref.TypeReprAccessibility
925
929
lettps= tcref.Typars tcref.Range
926
-
letobjGetHashCodeVal= mkValSpec g tcref tmty vis (Some(mkGetHashCodeSlotSig g))"GetHashCode"(tps +->(mkHashTy g tmty)) unitArg
930
+
letobjGetHashCodeVal= mkValSpec g tcref tmty vis (Some(mkGetHashCodeSlotSig g))"GetHashCode"(tps +->(mkHashTy g tmty)) unitArg
927
931
letwithcGetHashCodeVal= mkValSpec g tcref tmty vis (Some(mkIStructuralEquatableGetHashCodeSlotSig g))"GetHashCode"(tps +->(mkHashWithComparerTy g tmty)) unaryArg
928
932
letwithcEqualsVal= mkValSpec g tcref tmty vis (Some(mkIStructuralEquatableEqualsSlotSig g))"Equals"(tps +->(mkEqualsWithComparerTy g tmty)) tupArg
0 commit comments