Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit26526dd

Browse files
Vasily KirichenkoVasily Kirichenko
Vasily Kirichenko
authored and
Vasily Kirichenko
committed
wip
1 parent0676848 commit26526dd

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

‎src/fsharp/vs/ServiceAnalysis.fs‎

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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}))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp