@@ -121,10 +121,10 @@ module Helpers =
121121 let typ = nonAbbreviatedType typ
122122 if typ.HasTypeDefinition then Some typ.TypeDefinition else None
123123
124- // Sometimes accessing `EnclosingEntity ` throws an error (e.g. compiler generated
124+ // Sometimes accessing `DeclaringEntity ` throws an error (e.g. compiler generated
125125 // methods as in #237) so this prevents uncaught exceptions
126126 let tryEnclosingEntity ( meth : FSharpMemberOrFunctionOrValue ) =
127- try meth.EnclosingEntity
127+ try meth.DeclaringEntity
128128 with _ -> None
129129
130130 let isModuleMember ( meth : FSharpMemberOrFunctionOrValue ) =
@@ -249,7 +249,7 @@ module Helpers =
249249
250250 let getMemberKind ( meth : FSharpMemberOrFunctionOrValue ) =
251251 let ent = tryEnclosingEntity meth
252- // `.EnclosingEntity ` only fails for compiler generated module members
252+ // `.DeclaringEntity ` only fails for compiler generated module members
253253 if ent.IsNone || ( ent.Value.IsFSharpModule) then
254254 if meth.CurriedParameterGroups.Count = 0
255255 && meth.GenericParameters.Count = 0
@@ -1187,7 +1187,7 @@ module Util =
11871187 // the type and meth generic arguments, so this first folding is not necessary
11881188 // let genArgs =
11891189 // if meth.IsModuleValueOrMember then
1190- // ([], meth.EnclosingEntity .GenericParameters, typArgs)
1190+ // ([], meth.DeclaringEntity .GenericParameters, typArgs)
11911191 // |||> Seq.fold2 (fun acc genPar (ResolveGeneric ctx t) -> acc@[genPar.Name, t])
11921192 // else []
11931193 ([], meth.GenericParameters, typArgs@ methTypArgs)
0 commit comments