BaseCodeFixProvider.

FindDeclarationAsync<TDeclaration>(CodeFixContext, Diagnostic) Method

Syntax

protected static Task<TDeclaration> FindDeclarationAsync<TDeclaration>(CodeFixContext context, Diagnostic diagnostic) 
    where TDeclaration : SyntaxNode

Type Parameters

Name Description
TDeclaration

Parameters

Name Type Description
context CodeFixContext
diagnostic Diagnostic

Return Value

Type Description
Task<TDeclaration>
GitHub