SymbolFinder.FindSymbolAtPosition 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.
Caution
Use FindSymbolAtPositionAsync instead.
[System.Obsolete("Use FindSymbolAtPositionAsync instead.")]
public static Microsoft.CodeAnalysis.ISymbol FindSymbolAtPosition (Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.Workspace workspace, System.Threading.CancellationToken cancellationToken = default);
[<System.Obsolete("Use FindSymbolAtPositionAsync instead.")>]
static member FindSymbolAtPosition : Microsoft.CodeAnalysis.SemanticModel * int * Microsoft.CodeAnalysis.Workspace * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ISymbol
Public Shared Function FindSymbolAtPosition (semanticModel As SemanticModel, position As Integer, workspace As Workspace, Optional cancellationToken As CancellationToken = Nothing) As ISymbol
Parameters
- semanticModel
- SemanticModel
- position
- Int32
- workspace
- Workspace
- cancellationToken
- CancellationToken
Returns
- Attributes
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.