@@ -726,7 +726,7 @@ type ILMethodRef =
726726 mrefName: string ;
727727 mrefArgs: ILTypes ;
728728 mrefReturn: ILType }
729- member x.EnclosingTypeRef = x.mrefParent
729+ member x.DeclaringTypeRef = x.mrefParent
730730member x.CallingConv = x.mrefCallconv
731731member x.Name = x.mrefName
732732member x.GenericArity = x.mrefGenericArity
@@ -737,24 +737,24 @@ type ILMethodRef =
737737member x.CallingSignature = mkILCallSig( x.CallingConv, x.ArgTypes, x.ReturnType)
738738static member Create ( a , b , c , d , e , f ) =
739739{ mrefParent= a; mrefCallconv= b; mrefName= c; mrefGenericArity= d; mrefArgs= e; mrefReturn= f}
740- override x.ToString () = x.EnclosingTypeRef .ToString() + " ::" + x.Name+ " (...)"
740+ override x.ToString () = x.DeclaringTypeRef .ToString() + " ::" + x.Name+ " (...)"
741741
742742
743743[<StructuralEquality; StructuralComparison>]
744744type ILFieldRef =
745- { EnclosingTypeRef : ILTypeRef ;
745+ { DeclaringTypeRef : ILTypeRef ;
746746 Name: string ;
747747 Type: ILType }
748- override x.ToString () = x.EnclosingTypeRef .ToString() + " ::" + x.Name
748+ override x.ToString () = x.DeclaringTypeRef .ToString() + " ::" + x.Name
749749
750750[<StructuralEquality; StructuralComparison>]
751751type ILMethodSpec =
752752{ mspecMethodRef: ILMethodRef ;
753- mspecEnclosingType : ILType ;
753+ mspecDeclaringType : ILType ;
754754 mspecMethodInst: ILGenericArgs ; }
755- static member Create ( a , b , c ) = { mspecEnclosingType = a; mspecMethodRef= b; mspecMethodInst= c}
755+ static member Create ( a , b , c ) = { mspecDeclaringType = a; mspecMethodRef= b; mspecMethodInst= c}
756756member x.MethodRef = x.mspecMethodRef
757- member x.EnclosingType = x.mspecEnclosingType
757+ member x.DeclaringType = x.mspecDeclaringType
758758member x.GenericArgs = x.mspecMethodInst
759759member x.Name = x.MethodRef.Name
760760member x.CallingConv = x.MethodRef.CallingConv
@@ -766,10 +766,10 @@ type ILMethodSpec =
766766
767767type ILFieldSpec =
768768{ FieldRef: ILFieldRef ;
769- EnclosingType : ILType }
769+ DeclaringType : ILType }
770770member x.FormalType = x.FieldRef.Type
771771member x.Name = x.FieldRef.Name
772- member x.EnclosingTypeRef = x.FieldRef.EnclosingTypeRef
772+ member x.DeclaringTypeRef = x.FieldRef.DeclaringTypeRef
773773override x.ToString () = x.FieldRef.ToString()
774774
775775
@@ -1302,7 +1302,7 @@ type ILReturn =
13021302type ILOverridesSpec =
13031303| OverridesSpecof ILMethodRef * ILType
13041304member x.MethodRef = let ( OverridesSpec ( mr , _ty )) = xin mr
1305- member x.EnclosingType = let ( OverridesSpec ( _mr , ty )) = xin ty
1305+ member x.DeclaringType = let ( OverridesSpec ( _mr , ty )) = xin ty
13061306
13071307type ILMethodVirtualInfo =
13081308{ IsFinal: bool
@@ -1817,10 +1817,10 @@ let mkILMethRef (tref,callconv,nm,gparams,args,rty) =
18171817
18181818let mkILMethSpecForMethRefInTy ( mref , typ , minst ) =
18191819{ mspecMethodRef= mref;
1820- mspecEnclosingType = typ;
1820+ mspecDeclaringType = typ;
18211821 mspecMethodInst= minst}
18221822
1823- let mkILMethSpec ( mref , vc , tinst , minst ) = mkILMethSpecForMethRefInTy( mref, mkILNamedTy vc mref.EnclosingTypeRef tinst, minst)
1823+ let mkILMethSpec ( mref , vc , tinst , minst ) = mkILMethSpecForMethRefInTy( mref, mkILNamedTy vc mref.DeclaringTypeRef tinst, minst)
18241824
18251825let mk_mspec_in_tref ( tref , vc , cc , nm , args , rty , tinst , minst ) =
18261826 mkILMethSpec( mkILMethRef( tref, cc, nm, List.length minst, args, rty), vc, tinst, minst)
@@ -1856,9 +1856,9 @@ let mkILNonGenericCtorMethSpec (tref,args) =
18561856// Make references to fields
18571857// --------------------------------------------------------------------
18581858
1859- let mkILFieldRef ( tref , nm , ty ) = { EnclosingTypeRef = tref; Name= nm; Type= ty}
1859+ let mkILFieldRef ( tref , nm , ty ) = { DeclaringTypeRef = tref; Name= nm; Type= ty}
18601860
1861- let mkILFieldSpec ( tref , ty ) = { FieldRef= tref; EnclosingType = ty}
1861+ let mkILFieldSpec ( tref , ty ) = { FieldRef= tref; DeclaringType = ty}
18621862
18631863let mkILFieldSpecInTy ( typ : ILType , nm , fty ) =
18641864 mkILFieldSpec( mkILFieldRef( typ.TypeRef, nm, fty), typ)
@@ -2205,15 +2205,15 @@ and rescopeILCallSig scoref csig =
22052205 mkILCallSig( csig.CallingConv, rescopeILTypes scoref csig.ArgTypes, rescopeILType scoref csig.ReturnType)
22062206
22072207let rescopeILMethodRef scoref ( x : ILMethodRef ) =
2208- { mrefParent= rescopeILTypeRef scoref x.EnclosingTypeRef ;
2208+ { mrefParent= rescopeILTypeRef scoref x.DeclaringTypeRef ;
22092209 mrefCallconv= x.mrefCallconv;
22102210 mrefGenericArity= x.mrefGenericArity;
22112211 mrefName= x.mrefName;
22122212 mrefArgs= rescopeILTypes scoref x.mrefArgs;
22132213 mrefReturn= rescopeILType scoref x.mrefReturn}
22142214
22152215let rescopeILFieldRef scoref x =
2216- { EnclosingTypeRef = rescopeILTypeRef scoref x.EnclosingTypeRef ;
2216+ { DeclaringTypeRef = rescopeILTypeRef scoref x.DeclaringTypeRef ;
22172217 Name= x.Name;
22182218 Type= rescopeILType scoref x.Type}
22192219
@@ -2277,7 +2277,7 @@ let mkILLocal ty dbgInfo : ILLocal =
22772277
22782278type ILFieldSpec with
22792279member fr.ActualType =
2280- let env = fr.EnclosingType .GenericArgs
2280+ let env = fr.DeclaringType .GenericArgs
22812281 instILType env fr.FormalType
22822282
22832283// --------------------------------------------------------------------
@@ -3482,20 +3482,20 @@ and refs_of_genparams s b = List.iter (refs_of_genparam s) b
34823482and refs_of_dloc s ts = refs_ of_ tref s ts
34833483
34843484and refs_of_mref s ( x : ILMethodRef ) =
3485- refs_ of_ dloc s x.EnclosingTypeRef ;
3485+ refs_ of_ dloc s x.DeclaringTypeRef ;
34863486 refs_ of_ typs s x.mrefArgs;
34873487 refs_ of_ typ s x.mrefReturn
34883488
3489- and refs_of_fref s x = refs_ of_ tref s x.EnclosingTypeRef ; refs_ of_ typ s x.Type
3489+ and refs_of_fref s x = refs_ of_ tref s x.DeclaringTypeRef ; refs_ of_ typ s x.Type
34903490and refs_of_ospec s ( OverridesSpec ( mref , ty )) = refs_ of_ mref s mref; refs_ of_ typ s ty
34913491and refs_of_mspec s ( x : ILMethodSpec ) =
34923492 refs_ of_ mref s x.MethodRef;
3493- refs_ of_ typ s x.EnclosingType ;
3493+ refs_ of_ typ s x.DeclaringType ;
34943494 refs_ of_ inst s x.GenericArgs
34953495
34963496and refs_of_fspec s x =
34973497 refs_ of_ fref s x.FieldRef;
3498- refs_ of_ typ s x.EnclosingType
3498+ refs_ of_ typ s x.DeclaringType
34993499
35003500and refs_of_typs s l = List.iter( refs_ of_ typ s) l
35013501
@@ -3769,11 +3769,11 @@ let ungenericizeTypeName n =
37693769type ILEventRef =
37703770{ erA: ILTypeRef ; erB: string }
37713771static member Create ( a , b ) = { erA= a; erB= b}
3772- member x.EnclosingTypeRef = x.erA
3772+ member x.DeclaringTypeRef = x.erA
37733773member x.Name = x.erB
37743774
37753775type ILPropertyRef =
37763776{ prA: ILTypeRef ; prB: string }
37773777static member Create ( a , b ) = { prA= a; prB= b}
3778- member x.EnclosingTypeRef = x.prA
3778+ member x.DeclaringTypeRef = x.prA
37793779member x.Name = x.prB