@@ -3442,7 +3442,7 @@ module DebugPrint = begin
3442
3442
let rec MemberL ( v : Val ) ( membInfo : ValMemberInfo ) =
3443
3443
( aboveListL [ wordL( tagText " compiled_name! = " ) ^^ wordL ( tagText v.CompiledName) ;
3444
3444
wordL( tagText " membInfo-slotsig! = " ) ^^ listL slotSigL membInfo.ImplementedSlotSigs ])
3445
- and vspecAtBindL v =
3445
+ and valAtBindL v =
3446
3446
let vL = valL v in
3447
3447
let mutL = ( if v.IsMutable then wordL( tagText " mutable" ) ++ vL else vL)
3448
3448
mutL --- ( aboveListL ( List.concat [[ wordL( tagText " :" ) ^^ typeL v.Type];
@@ -3512,7 +3512,7 @@ module DebugPrint = begin
3512
3512
then emptyL
3513
3513
else
3514
3514
let iimplsLs = iimpls |> List.map ( fun ( ty , _ , _ ) -> wordL( tagText " interface" ) --- typeL ty)
3515
- let adhocLs = adhoc |> List.map ( fun vref -> vspecAtBindL vref.Deref)
3515
+ let adhocLs = adhoc |> List.map ( fun vref -> valAtBindL vref.Deref)
3516
3516
( wordL( tagText " with" ) @@-- aboveListL ( iimplsLs @ adhocLs)) @@ wordL( tagText " end" )
3517
3517
3518
3518
let layoutUnionCaseArgTypes argtys = sepListL ( wordL( tagText " *" )) ( List.map typeL argtys)
@@ -3559,7 +3559,7 @@ module DebugPrint = begin
3559
3559
let vsprs =
3560
3560
tycon.MembersOfFSharpTyconSorted
3561
3561
|> List.filter ( fun v -> v.IsDispatchSlot)
3562
- |> List.map ( fun vref -> vspecAtBindL vref.Deref)
3562
+ |> List.map ( fun vref -> valAtBindL vref.Deref)
3563
3563
let vals = tycon.TrueFieldsAsList |> List.map ( fun f -> ( if f.IsStatic then wordL( tagText " static" ) else emptyL) ^^ wordL( tagText " val" ) ^^ layoutRecdField f)
3564
3564
let alldecls = inherits @ vsprs @ vals
3565
3565
let emptyMeasure = match tycon.TypeOrMeasureKind with TyparKind.Measure -> isNil alldecls | _ -> false
@@ -3590,7 +3590,7 @@ module DebugPrint = begin
3590
3590
//--------------------------------------------------------------------------
3591
3591
3592
3592
and bindingL ( TBind ( v , repr , _ )) =
3593
- vspecAtBindL v --- ( wordL( tagText " =" ) ^^ exprL repr)
3593
+ valAtBindL v --- ( wordL( tagText " =" ) ^^ exprL repr)
3594
3594
3595
3595
and exprL expr = exprWrapL false expr
3596
3596
and atomL expr = exprWrapL true expr // true means bracket if needed to be atomic expr
@@ -3628,11 +3628,11 @@ module DebugPrint = begin
3628
3628
| ThenDoSeq -> " ; (*ThenDo*)"
3629
3629
(( exprL x0 ^^ rightL ( tagText flag)) @@ exprL x1) |> wrap
3630
3630
| Expr.Lambda(_, _, baseValOpt, argvs, body, _, _) ->
3631
- let formalsL = spaceListL ( List.map vspecAtBindL argvs) in
3631
+ let formalsL = spaceListL ( List.map valAtBindL argvs) in
3632
3632
let bindingL =
3633
3633
match baseValOpt with
3634
3634
| None -> wordL( tagText " lam" ) ^^ formalsL ^^ rightL( tagText " ." )
3635
- | Some basev -> wordL( tagText " lam" ) ^^ ( leftL( tagText " base=" ) ^^ vspecAtBindL basev) --- formalsL ^^ rightL( tagText " ." ) in
3635
+ | Some basev -> wordL( tagText " lam" ) ^^ ( leftL( tagText " base=" ) ^^ valAtBindL basev) --- formalsL ^^ rightL( tagText " ." ) in
3636
3636
( bindingL ++ exprL body) |> wrap
3637
3637
| Expr.TyLambda(_, argtyvs, body, _, _) ->
3638
3638
(( wordL( tagText " LAM" ) ^^ spaceListL ( List.map typarL argtyvs) ^^ rightL( tagText " ." )) ++ exprL body) |> wrap
@@ -3727,7 +3727,7 @@ module DebugPrint = begin
3727
3727
| Expr.Obj (_ lambdaId, ty, basev, ccall, overrides, iimpls, _) ->
3728
3728
wordL( tagText " OBJ:" ) ^^ aboveListL [ typeL ty;
3729
3729
exprL ccall;
3730
- optionL vspecAtBindL basev;
3730
+ optionL valAtBindL basev;
3731
3731
aboveListL ( List.map overrideL overrides);
3732
3732
aboveListL ( List.map iimplL iimpls)]
3733
3733
@@ -3812,7 +3812,7 @@ module DebugPrint = begin
3812
3812
and tmethodL ( TObjExprMethod ( TSlotSig ( nm , _ , _ , _ , _ , _ ), _ , tps , vs , e , _ )) =
3813
3813
( wordL( tagText " TObjExprMethod" ) --- ( wordL ( tagText nm)) ^^ wordL( tagText " =" )) --
3814
3814
( wordL( tagText " METH-LAM" ) --- angleBracketListL ( List.map typarL tps) ^^ rightL( tagText " ." )) ---
3815
- ( wordL( tagText " meth-lam" ) --- tupleL ( List.map ( List.map vspecAtBindL >> tupleL) vs) ^^ rightL( tagText " ." )) ---
3815
+ ( wordL( tagText " meth-lam" ) --- tupleL ( List.map ( List.map valAtBindL >> tupleL) vs) ^^ rightL( tagText " ." )) ---
3816
3816
( atomL e)
3817
3817
and overrideL tmeth = wordL( tagText " with" ) ^^ tmethodL tmeth
3818
3818
and iimplL ( ty , tmeths ) = wordL( tagText " impl" ) ^^ aboveListL ( typeL ty :: List.map tmethodL tmeths)
@@ -3850,33 +3850,33 @@ let SigTypeOfImplFile (TImplFile(_, _, mexpr, _, _, _)) = mexpr.Type
3850
3850
//--------------------------------------------------------------------------
3851
3851
3852
3852
type SignatureRepackageInfo =
3853
- { mrpiVals : ( ValRef * ValRef ) list ;
3854
- mrpiEntities : ( TyconRef * TyconRef ) list }
3853
+ { RepackagedVals : ( ValRef * ValRef ) list ;
3854
+ RepackagedEntities : ( TyconRef * TyconRef ) list }
3855
3855
3856
- member remapInfo.ImplToSigMapping = { TypeEquivEnv.Empty with EquivTycons = TyconRefMap.OfList remapInfo.mrpiEntities }
3857
- static member Empty = { mrpiVals = []; mrpiEntities = [] }
3856
+ member remapInfo.ImplToSigMapping = { TypeEquivEnv.Empty with EquivTycons = TyconRefMap.OfList remapInfo.RepackagedEntities }
3857
+ static member Empty = { RepackagedVals = []; RepackagedEntities = [] }
3858
3858
3859
3859
type SignatureHidingInfo =
3860
- { mhiTycons : Zset < Tycon >;
3861
- mhiTyconReprs : Zset < Tycon >;
3862
- mhiVals : Zset < Val >;
3863
- mhiRecdFields : Zset < RecdFieldRef >;
3864
- mhiUnionCases : Zset < UnionCaseRef > }
3860
+ { HiddenTycons : Zset < Tycon >;
3861
+ HiddenTyconReprs : Zset < Tycon >;
3862
+ HiddenVals : Zset < Val >;
3863
+ HiddenRecdFields : Zset < RecdFieldRef >;
3864
+ HiddenUnionCases : Zset < UnionCaseRef > }
3865
3865
3866
3866
static member Empty =
3867
- { mhiTycons = Zset.empty tyconOrder;
3868
- mhiTyconReprs = Zset.empty tyconOrder;
3869
- mhiVals = Zset.empty valOrder;
3870
- mhiRecdFields = Zset.empty recdFieldRefOrder;
3871
- mhiUnionCases = Zset.empty unionCaseRefOrder }
3867
+ { HiddenTycons = Zset.empty tyconOrder;
3868
+ HiddenTyconReprs = Zset.empty tyconOrder;
3869
+ HiddenVals = Zset.empty valOrder;
3870
+ HiddenRecdFields = Zset.empty recdFieldRefOrder;
3871
+ HiddenUnionCases = Zset.empty unionCaseRefOrder }
3872
3872
3873
3873
let addValRemap v v' tmenv =
3874
3874
{ tmenv with valRemap= tmenv.valRemap.Add v ( mkLocalValRef v') }
3875
3875
3876
3876
let mkRepackageRemapping mrpi =
3877
- { valRemap = ValMap.OfList ( mrpi.mrpiVals |> List.map ( fun ( vref , x ) -> vref.Deref, x));
3877
+ { valRemap = ValMap.OfList ( mrpi.RepackagedVals |> List.map ( fun ( vref , x ) -> vref.Deref, x));
3878
3878
tpinst = emptyTyparInst;
3879
- tyconRefRemap = TyconRefMap.OfList mrpi.mrpiEntities
3879
+ tyconRefRemap = TyconRefMap.OfList mrpi.RepackagedEntities
3880
3880
removeTraitSolutions = false }
3881
3881
3882
3882
//--------------------------------------------------------------------------
@@ -3888,18 +3888,18 @@ let accEntityRemap (msigty:ModuleOrNamespaceType) (entity:Entity) (mrpi, mhi) =
3888
3888
match sigtyconOpt with
3889
3889
| None ->
3890
3890
// The type constructor is not present in the signature. Hence it is hidden.
3891
- let mhi = { mhi with mhiTycons = Zset.add entity mhi.mhiTycons }
3891
+ let mhi = { mhi with HiddenTycons = Zset.add entity mhi.HiddenTycons }
3892
3892
( mrpi, mhi)
3893
3893
| Some sigtycon ->
3894
3894
// The type constructor is in the signature. Hence record the repackage entry
3895
3895
let sigtcref = mkLocalTyconRef sigtycon
3896
3896
let tcref = mkLocalTyconRef entity
3897
- let mrpi = { mrpi with mrpiEntities = (( tcref, sigtcref) :: mrpi.mrpiEntities ) }
3897
+ let mrpi = { mrpi with RepackagedEntities = (( tcref, sigtcref) :: mrpi.RepackagedEntities ) }
3898
3898
// OK, now look for hidden things
3899
3899
let mhi =
3900
3900
if ( match entity.TypeReprInfo with TNoRepr -> false | _ -> true ) && ( match sigtycon.TypeReprInfo with TNoRepr -> true | _ -> false ) then
3901
3901
// The type representation is absent in the signature, hence it is hidden
3902
- { mhi with mhiTyconReprs = Zset.add entity mhi.mhiTyconReprs }
3902
+ { mhi with HiddenTyconReprs = Zset.add entity mhi.HiddenTyconReprs }
3903
3903
else
3904
3904
// The type representation is present in the signature.
3905
3905
// Find the fields that have been hidden or which were non-public anyway.
@@ -3912,7 +3912,7 @@ let accEntityRemap (msigty:ModuleOrNamespaceType) (entity:Entity) (mrpi, mhi) =
3912
3912
| _ ->
3913
3913
// The field is not in the signature. Hence it is regarded as hidden.
3914
3914
let rfref = tcref.MakeNestedRecdFieldRef rfield
3915
- { mhi with mhiRecdFields = Zset.add rfref mhi.mhiRecdFields })
3915
+ { mhi with HiddenRecdFields = Zset.add rfref mhi.HiddenRecdFields })
3916
3916
entity.AllFieldsArray
3917
3917
|> List.foldBack ( fun ( ucase : UnionCase ) mhi ->
3918
3918
match sigtycon.GetUnionCaseByName ucase.DisplayName with
@@ -3922,7 +3922,7 @@ let accEntityRemap (msigty:ModuleOrNamespaceType) (entity:Entity) (mrpi, mhi) =
3922
3922
| _ ->
3923
3923
// The constructor is not in the signature. Hence it is regarded as hidden.
3924
3924
let ucref = tcref.MakeNestedUnionCaseRef ucase
3925
- { mhi with mhiUnionCases = Zset.add ucref mhi.mhiUnionCases })
3925
+ { mhi with HiddenUnionCases = Zset.add ucref mhi.HiddenUnionCases })
3926
3926
( entity.UnionCasesAsList)
3927
3927
( mrpi, mhi)
3928
3928
@@ -3931,13 +3931,13 @@ let accSubEntityRemap (msigty:ModuleOrNamespaceType) (entity:Entity) (mrpi, mhi)
3931
3931
match sigtyconOpt with
3932
3932
| None ->
3933
3933
// The type constructor is not present in the signature. Hence it is hidden.
3934
- let mhi = { mhi with mhiTycons = Zset.add entity mhi.mhiTycons }
3934
+ let mhi = { mhi with HiddenTycons = Zset.add entity mhi.HiddenTycons }
3935
3935
( mrpi, mhi)
3936
3936
| Some sigtycon ->
3937
3937
// The type constructor is in the signature. Hence record the repackage entry
3938
3938
let sigtcref = mkLocalTyconRef sigtycon
3939
3939
let tcref = mkLocalTyconRef entity
3940
- let mrpi = { mrpi with mrpiEntities = (( tcref, sigtcref) :: mrpi.mrpiEntities ) }
3940
+ let mrpi = { mrpi with RepackagedEntities = (( tcref, sigtcref) :: mrpi.RepackagedEntities ) }
3941
3941
( mrpi, mhi)
3942
3942
3943
3943
let valLinkageAEquiv g aenv ( v1 : Val ) ( v2 : Val ) =
@@ -3955,11 +3955,11 @@ let accValRemap g aenv (msigty:ModuleOrNamespaceType) (implVal:Val) (mrpi, mhi)
3955
3955
match sigValOpt with
3956
3956
| None ->
3957
3957
if verbose then dprintf " accValRemap, hide = %s #%d \n " implVal.LogicalName implVal.Stamp
3958
- let mhi = { mhi with mhiVals = Zset.add implVal mhi.mhiVals }
3958
+ let mhi = { mhi with HiddenVals = Zset.add implVal mhi.HiddenVals }
3959
3959
( mrpi, mhi)
3960
3960
| Some ( sigVal: Val) ->
3961
3961
// The value is in the signature. Add the repackage entry.
3962
- let mrpi = { mrpi with mrpiVals = ( vref, mkLocalValRef sigVal) :: mrpi.mrpiVals }
3962
+ let mrpi = { mrpi with RepackagedVals = ( vref, mkLocalValRef sigVal) :: mrpi.RepackagedVals }
3963
3963
( mrpi, mhi)
3964
3964
3965
3965
let getCorrespondingSigTy nm ( msigty : ModuleOrNamespaceType ) =
@@ -4053,25 +4053,25 @@ let ComputeRemappingFromImplementationToSignature g mdef msigty =
4053
4053
let accTyconHidingInfoAtAssemblyBoundary ( tycon : Tycon ) mhi =
4054
4054
if not ( canAccessFromEverywhere tycon.Accessibility) then
4055
4055
// The type constructor is not public, hence hidden at the assembly boundary.
4056
- { mhi with mhiTycons = Zset.add tycon mhi.mhiTycons }
4056
+ { mhi with HiddenTycons = Zset.add tycon mhi.HiddenTycons }
4057
4057
elif not ( canAccessFromEverywhere tycon.TypeReprAccessibility) then
4058
- { mhi with mhiTyconReprs = Zset.add tycon mhi.mhiTyconReprs }
4058
+ { mhi with HiddenTyconReprs = Zset.add tycon mhi.HiddenTyconReprs }
4059
4059
else
4060
4060
mhi
4061
4061
|> Array.foldBack
4062
4062
( fun ( rfield : RecdField ) mhi ->
4063
4063
if not ( canAccessFromEverywhere rfield.Accessibility) then
4064
4064
let tcref = mkLocalTyconRef tycon
4065
4065
let rfref = tcref.MakeNestedRecdFieldRef rfield
4066
- { mhi with mhiRecdFields = Zset.add rfref mhi.mhiRecdFields }
4066
+ { mhi with HiddenRecdFields = Zset.add rfref mhi.HiddenRecdFields }
4067
4067
else mhi)
4068
4068
tycon.AllFieldsArray
4069
4069
|> List.foldBack
4070
4070
( fun ( ucase : UnionCase ) mhi ->
4071
4071
if not ( canAccessFromEverywhere ucase.Accessibility) then
4072
4072
let tcref = mkLocalTyconRef tycon
4073
4073
let ucref = tcref.MakeNestedUnionCaseRef ucase
4074
- { mhi with mhiUnionCases = Zset.add ucref mhi.mhiUnionCases }
4074
+ { mhi with HiddenUnionCases = Zset.add ucref mhi.HiddenUnionCases }
4075
4075
else mhi)
4076
4076
( tycon.UnionCasesAsList)
4077
4077
@@ -4086,7 +4086,7 @@ let accValHidingInfoAtAssemblyBoundary (vspec:Val) mhi =
4086
4086
// anything that's not a module or member binding gets assembly visibility
4087
4087
not vspec.IsMemberOrModuleBinding then
4088
4088
// The value is not public, hence hidden at the assembly boundary.
4089
- { mhi with mhiVals = Zset.add vspec mhi.mhiVals }
4089
+ { mhi with HiddenVals = Zset.add vspec mhi.HiddenVals }
4090
4090
else
4091
4091
mhi
4092
4092
@@ -4121,10 +4121,10 @@ let IsHidden setF accessF remapF debugF =
4121
4121
if verbose then dprintf " IsHidden, #mrmi = %d , %s = %b \n " mrmi.Length ( showL ( debugF x)) res;
4122
4122
res
4123
4123
4124
- let IsHiddenTycon mrmi x = IsHidden ( fun mhi -> mhi.mhiTycons ) ( fun tc -> tc.Accessibility) ( fun rpi x -> ( remapTyconRef rpi.tyconRefRemap ( mkLocalTyconRef x)) .Deref) DebugPrint.tyconL mrmi x
4125
- let IsHiddenTyconRepr mrmi x = IsHidden ( fun mhi -> mhi.mhiTyconReprs ) ( fun v -> v.TypeReprAccessibility) ( fun rpi x -> ( remapTyconRef rpi.tyconRefRemap ( mkLocalTyconRef x)) .Deref) DebugPrint.tyconL mrmi x
4126
- let IsHiddenVal mrmi x = IsHidden ( fun mhi -> mhi.mhiVals ) ( fun v -> v.Accessibility) ( fun rpi x -> ( remapValRef rpi ( mkLocalValRef x)) .Deref) DebugPrint.valL mrmi x
4127
- let IsHiddenRecdField mrmi x = IsHidden ( fun mhi -> mhi.mhiRecdFields ) ( fun rfref -> rfref.RecdField.Accessibility) ( fun rpi x -> remapRecdFieldRef rpi.tyconRefRemap x) DebugPrint.recdFieldRefL mrmi x
4124
+ let IsHiddenTycon mrmi x = IsHidden ( fun mhi -> mhi.HiddenTycons ) ( fun tc -> tc.Accessibility) ( fun rpi x -> ( remapTyconRef rpi.tyconRefRemap ( mkLocalTyconRef x)) .Deref) DebugPrint.tyconL mrmi x
4125
+ let IsHiddenTyconRepr mrmi x = IsHidden ( fun mhi -> mhi.HiddenTyconReprs ) ( fun v -> v.TypeReprAccessibility) ( fun rpi x -> ( remapTyconRef rpi.tyconRefRemap ( mkLocalTyconRef x)) .Deref) DebugPrint.tyconL mrmi x
4126
+ let IsHiddenVal mrmi x = IsHidden ( fun mhi -> mhi.HiddenVals ) ( fun v -> v.Accessibility) ( fun rpi x -> ( remapValRef rpi ( mkLocalValRef x)) .Deref) DebugPrint.valL mrmi x
4127
+ let IsHiddenRecdField mrmi x = IsHidden ( fun mhi -> mhi.HiddenRecdFields ) ( fun rfref -> rfref.RecdField.Accessibility) ( fun rpi x -> remapRecdFieldRef rpi.tyconRefRemap x) DebugPrint.recdFieldRefL mrmi x
4128
4128
4129
4129
4130
4130
//--------------------------------------------------------------------------
0 commit comments