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

Commitba6e2b8

Browse files
Vasily KirichenkoVasily Kirichenko
Vasily Kirichenko
authored and
Vasily Kirichenko
committed
fix compilation
1 parentd6fade9 commitba6e2b8

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

‎src/fsharp/vs/ServiceAnalysis.fs‎

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -127,17 +127,18 @@ 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 entwhen ent.IsNamespace|| ent.IsFSharpModule->
134-
Some(ent.IsEffectivelySameAs modul.Entity)
135-
|_-> None
136-
|_-> None
137-
|> Option.defaultWith(fun()->
138-
modul.ChildSymbols
139-
|> Seq.exists(fun x-> x.IsEffectivelySameAs symbolUse.Symbol)
140-
))))
130+
letusedByEnclosingEntity=
131+
match symbolUse.Symbolwith
132+
|:? FSharpMemberOrFunctionOrValueas f->
133+
match f.EnclosingEntitywith
134+
| Some entwhen ent.IsNamespace|| ent.IsFSharpModule->
135+
Some(ent.IsEffectivelySameAs modul.Entity)
136+
|_-> None
137+
|_-> None
138+
match usedByEnclosingEntitywith
139+
| Some x-> x
140+
| None-> modul.ChildSymbols|> Seq.exists(fun x-> x.IsEffectivelySameAs symbolUse.Symbol)
141+
)))
141142
|> List.collect(fun mg->
142143
mg.Modules|> List.map(fun x->{ Module= x.Entity; AppliedScope= openStatement.AppliedScope}))
143144

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp