Skip to content

Commit b1dd853

Browse files
vasily-kirichenkoKevinRansom
authored andcommitted
fix FSharpSymbolUse.IsPrivateToFile for values and functions (dotnet#2144)
1 parent 39dc63f commit b1dd853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vsintegration/src/FSharp.Editor/Common/CommonHelpers.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ module internal Extensions =
506506
member this.IsPrivateToFile =
507507
let isPrivate =
508508
match this.Symbol with
509-
| :? FSharpMemberOrFunctionOrValue as m -> not m.IsModuleValueOrMember
509+
| :? FSharpMemberOrFunctionOrValue as m -> not m.IsModuleValueOrMember || m.Accessibility.IsPrivate
510510
| :? FSharpEntity as m -> m.Accessibility.IsPrivate
511511
| :? FSharpGenericParameter -> true
512512
| :? FSharpUnionCase as m -> m.Accessibility.IsPrivate

0 commit comments

Comments
 (0)