Skip to content

Commit 8e467c1

Browse files
cartermpKevinRansom
authored andcommitted
Remove call to internal API in Simplify Name Analyzer (#6901)
* Remove call to internal API in Simplify Name Analyzer * Remove unused opens
1 parent 4a695e7 commit 8e467c1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

vsintegration/src/FSharp.Editor/Diagnostics/SimplifyNameDiagnosticAnalyzer.fs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ open System.Collections.Immutable
77
open System.Diagnostics
88
open System.Threading
99
open System.Threading.Tasks
10-
open System.Runtime.CompilerServices
1110

1211
open Microsoft.CodeAnalysis
1312
open Microsoft.CodeAnalysis.Diagnostics
1413
open FSharp.Compiler
1514
open FSharp.Compiler.Range
16-
open FSharp.Compiler.SourceCodeServices
1715
open System.Runtime.Caching
1816
open Microsoft.CodeAnalysis.ExternalAccess.FSharp.Diagnostics
1917

@@ -94,7 +92,7 @@ type internal SimplifyNameDiagnosticAnalyzer() =
9492
match rest with
9593
| [] -> return current
9694
| headIdent :: restPlid ->
97-
let! res = checkResults.IsRelativeNameResolvable(posAtStartOfName, current, symbolUse.Symbol.Item, userOpName=userOpName)
95+
let! res = checkResults.IsRelativeNameResolvableFromSymbol(posAtStartOfName, current, symbolUse.Symbol, userOpName=userOpName)
9896
if res then return current
9997
else return! loop restPlid (headIdent :: current)
10098
}

0 commit comments

Comments
 (0)