SemanticModel.GetOperation(SyntaxNode, CancellationToken) 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.
Gets the operation corresponding to the expression or statement syntax node.
public Microsoft.CodeAnalysis.IOperation GetOperation (Microsoft.CodeAnalysis.SyntaxNode node, System.Threading.CancellationToken cancellationToken = default);
public Microsoft.CodeAnalysis.IOperation? GetOperation (Microsoft.CodeAnalysis.SyntaxNode node, System.Threading.CancellationToken cancellationToken = default);
member this.GetOperation : Microsoft.CodeAnalysis.SyntaxNode * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IOperation
Public Function GetOperation (node As SyntaxNode, Optional cancellationToken As CancellationToken = Nothing) As IOperation
Parameters
- node
- SyntaxNode
The expression or statement syntax node.
- cancellationToken
- CancellationToken
An optional cancellation token.