18 references to TryGetRelevantNodeAsync
Microsoft.CodeAnalysis.Features (18)
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (2)
68
var type = await context.
TryGetRelevantNodeAsync
<TTypeDeclarationSyntax>().ConfigureAwait(false);
78
var method = await context.
TryGetRelevantNodeAsync
<TMethodDeclarationSyntax>().ConfigureAwait(false);
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
65
var containingProperty = await context.
TryGetRelevantNodeAsync
<TPropertyDeclarationNode>().ConfigureAwait(false);
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
62
var foreachStatement = await context.
TryGetRelevantNodeAsync
<TForEachStatement>().ConfigureAwait(false);
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
56
var forStatement = await context.
TryGetRelevantNodeAsync
<TForStatementSyntax>().ConfigureAwait(false);
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (1)
42
var ifStatement = await context.
TryGetRelevantNodeAsync
<TIfStatementSyntax>().ConfigureAwait(false);
ConvertLinq\ConvertForEachToLinqQuery\AbstractConvertForEachToLinqQueryProvider.cs (1)
69
var forEachStatement = await context.
TryGetRelevantNodeAsync
<TForEachStatement>().ConfigureAwait(false);
ConvertNumericLiteral\AbstractConvertNumericLiteralCodeRefactoringProvider.cs (1)
36
var numericLiteralNode = await context.
TryGetRelevantNodeAsync
<TNumericLiteralExpression>().ConfigureAwait(false);
InitializeParameter\AbstractInitializeParameterCodeRefactoringProvider.cs (1)
61
var selectedParameter = await context.
TryGetRelevantNodeAsync
<TParameterSyntax>().ConfigureAwait(false);
InlineMethod\AbstractInlineMethodRefactoringProvider.cs (1)
85
var calleeInvocationNode = await context.
TryGetRelevantNodeAsync
<TInvocationSyntax>().ConfigureAwait(false);
IntroduceVariable\AbstractIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
73
var expressionStatement = await context.
TryGetRelevantNodeAsync
<TExpressionStatementSyntax>().ConfigureAwait(false);
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (1)
87
var ifNode = await context.
TryGetRelevantNodeAsync
<TIfStatementSyntax>().ConfigureAwait(false);
InvertLogical\AbstractInvertLogicalCodeRefactoringProvider.cs (1)
39
var expression = (SyntaxNode?)await context.
TryGetRelevantNodeAsync
<TBinaryExpressionSyntax>().ConfigureAwait(false);
MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceCodeRefactoringProvider.cs (1)
20
var declaration = await context.
TryGetRelevantNodeAsync
<TLocalDeclaration>().ConfigureAwait(false);
ReplaceConditionalWithStatements\AbstractReplaceConditionalWithStatementsCodeRefactoringProvider.cs (2)
57
var conditionalExpression = await context.
TryGetRelevantNodeAsync
<TConditionalExpressionSyntax>().ConfigureAwait(false);
67
var statement = await context.
TryGetRelevantNodeAsync
<TStatementSyntax>().ConfigureAwait(false);
ReplaceMethodWithProperty\AbstractReplaceMethodWithPropertyService.cs (1)
18
=> await context.
TryGetRelevantNodeAsync
<TMethodDeclarationSyntax>().ConfigureAwait(false);
ReplacePropertyWithMethods\AbstractReplacePropertyWithMethodsService.cs (1)
37
=> await context.
TryGetRelevantNodeAsync
<TPropertySyntax>().ConfigureAwait(false);