2 implementations of IsOnIfStatementHeader
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\AbstractHeaderFacts.cs (1)
29
public abstract bool
IsOnIfStatementHeader
(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? ifStatement);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\AbstractRefactoringHelpersService.cs (1)
591
public bool
IsOnIfStatementHeader
(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? ifStatement)
3 references to IsOnIfStatementHeader
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
363
if (headerFacts.
IsOnIfStatementHeader
(root, operation.BaseToken.SpanStart, out var conditionStatement)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\AbstractRefactoringHelpersService.cs (2)
503
if (headerFacts.
IsOnIfStatementHeader
(root, location, out var ifStatement))
592
=> HeaderFacts.
IsOnIfStatementHeader
(root, position, out ifStatement);