1 implementation of IsExecutableBlock
Microsoft.CodeAnalysis.Workspaces (1)
AbstractBlockFacts.cs (1)
13
public abstract bool
IsExecutableBlock
([NotNullWhen(true)] SyntaxNode? node);
7 references to IsExecutableBlock
Microsoft.CodeAnalysis.CSharp.Features (1)
RemoveUnusedVariable\CSharpRemoveUnusedVariableCodeFixProvider.cs (1)
83
blockFacts.
IsExecutableBlock
(localDeclaration.Parent);
Microsoft.CodeAnalysis.Features (4)
AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
685
blockFacts.
IsExecutableBlock
(n.Parent) &&
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (1)
144
if (blockFacts.
IsExecutableBlock
(statementParent))
SplitOrMergeIfStatements\Consecutive\AbstractMergeConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
234
blockFacts.
IsExecutableBlock
(ifOrElseIf.Parent))
SplitOrMergeIfStatements\Consecutive\AbstractSplitIntoConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
89
if (!blockFacts.
IsExecutableBlock
(ifOrElseIf.Parent))
Microsoft.CodeAnalysis.Workspaces (2)
AbstractMoveDeclarationNearReferenceService.State.cs (1)
77
if (!blockFacts.
IsExecutableBlock
(OutermostBlock))
AbstractSemanticFactsService.cs (1)
77
a => BlockFacts.
IsExecutableBlock
(a) || SyntaxFacts.IsParameterList(a) || SyntaxFacts.IsMethodBody(a));