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

Commitf448785

Browse files
committed
filter more symbols
1 parent09bb049 commitf448785

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎src/fsharp/service/ServiceAnalysis.fs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ module UnusedOpens =
9898
|:? FSharpMemberOrFunctionOrValueas fvwhen fv.IsExtensionMember->
9999
// Extension members should be taken into account even though they have a prefix (as they do most of the time)
100100
true
101+
|:? FSharpMemberOrFunctionOrValueas fvwhennot fv.IsModuleValueOrMember->
102+
// Local values can be ignored
103+
false
104+
|:? FSharpGenericParameter->
105+
// Generic parameters can be ignored, they never come into scope via 'open'
106+
false
101107
|_->
102108
// For the rest of symbols we pick only those which are the first part of a long ident, because it's they which are
103109
// contained in opened namespaces / modules. For example, we pick `IO` from long ident `IO.File.OpenWrite` because

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp