SymbolFinder.FindSymbolAtPositionAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FindSymbolAtPositionAsync(Document, Int32, CancellationToken) | |
FindSymbolAtPositionAsync(SemanticModel, Int32, Workspace, CancellationToken) |
Finds the symbol that is associated with a position in the text of a document. |
FindSymbolAtPositionAsync(Document, Int32, CancellationToken)
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.ISymbol> FindSymbolAtPositionAsync (Microsoft.CodeAnalysis.Document document, int position, System.Threading.CancellationToken cancellationToken = default);
static member FindSymbolAtPositionAsync : Microsoft.CodeAnalysis.Document * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.ISymbol>
Public Shared Function FindSymbolAtPositionAsync (document As Document, position As Integer, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ISymbol)
Parameters
- document
- Document
- position
- Int32
- cancellationToken
- CancellationToken
Returns
Applies to
FindSymbolAtPositionAsync(SemanticModel, Int32, Workspace, CancellationToken)
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
- Source:
- SymbolFinder.cs
Finds the symbol that is associated with a position in the text of a document.
public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.ISymbol> FindSymbolAtPositionAsync (Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.Workspace workspace, System.Threading.CancellationToken cancellationToken = default);
static member FindSymbolAtPositionAsync : Microsoft.CodeAnalysis.SemanticModel * int * Microsoft.CodeAnalysis.Workspace * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.ISymbol>
Public Shared Function FindSymbolAtPositionAsync (semanticModel As SemanticModel, position As Integer, workspace As Workspace, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ISymbol)
Parameters
- semanticModel
- SemanticModel
The semantic model associated with the document.
- position
- Int32
The character position within the document.
- workspace
- Workspace
A workspace to provide context.
- cancellationToken
- CancellationToken
A CancellationToken.
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.