@@ -127,19 +127,15 @@ module UnusedOpens =
127127|> List.exists( fun modul ->
128128 symbolUsesInScope
129129|> Array.exists( fun symbolUse ->
130- match symbolUse.Symbolwith
131- | :? FSharpMemberOrFunctionOrValueas f->
132- match f.EnclosingEntitywith
133- | Some enclosingEntity-> enclosingEntity.IsEffectivelySameAs modul.Entity
134- | _ -> false
135- | _ -> false
136- //| :? FSharpEntity as ent ->
137- // match ent. EnclosingEntity with
138- // | Some enclosingEntity -> enclosingEntity.IsEffectivelySameAs modul.Entity
139- // | _ -> false
140-
141- //modul.ChildSymbols
142- //|> Seq.exists (fun x -> x.IsEffectivelySameAs symbolUse.Symbol))))
130+ //match symbolUse.Symbol with
131+ //| :? FSharpMemberOrFunctionOrValue as f ->
132+ // match f.EnclosingEntity with
133+ // | Some enclosingEntity -> Some (enclosingEntity.IsEffectivelySameAs modul.Entity)
134+ // | _ -> None
135+ //| _ -> None
136+ //|> Option.defaultWith (fun () ->
137+ modul.ChildSymbols
138+ |> Seq.exists( fun x -> x.IsEffectivelySameAs symbolUse.Symbol)
143139)))
144140|> List.collect( fun mg ->
145141 mg.Modules|> List.map( fun x -> { Module= x.Entity; AppliedScope= openStatement.AppliedScope}))