ProjectManager.SymbolReferences(ReferenceParams) Method

Definition

Returns an array with all locations where the symbol at the given position - if any - is referenced.

public Microsoft.VisualStudio.LanguageServer.Protocol.Location[]? SymbolReferences (Microsoft.VisualStudio.LanguageServer.Protocol.ReferenceParams? param);
member this.SymbolReferences : Microsoft.VisualStudio.LanguageServer.Protocol.ReferenceParams -> Microsoft.VisualStudio.LanguageServer.Protocol.Location[]
Public Function SymbolReferences (param As ReferenceParams) As Location()

Parameters

Returns

Location[]

Remarks

Returns null if some parameters are unspecified (null), or if the specified file is not listed as source file, or if the specified position is not a valid position within the currently processed file content, or if no symbol exists at the specified position at this time.

Fails silently without logging anything if an exception occurs upon evaluating the query (occasional failures are to be expected as the evaluation is a readonly query running in parallel to the ongoing processing).

Applies to