1 implementation of IsExecutableBlock
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\BlockFacts\AbstractBlockFacts.cs (1)
14
public abstract bool
IsExecutableBlock
([NotNullWhen(true)] SyntaxNode? node);
6 references to IsExecutableBlock
Microsoft.CodeAnalysis.Features (4)
EmbeddedLanguages\EmbeddedLanguageDetector.cs (1)
344
var block = tokenParent.AncestorsAndSelf().FirstOrDefault(blockFacts.
IsExecutableBlock
);
SplitOrMergeIfStatements\Consecutive\AbstractMergeConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
234
blockFacts.
IsExecutableBlock
(ifOrElseIf.Parent))
SplitOrMergeIfStatements\Consecutive\AbstractSplitIntoConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
88
if (!blockFacts.
IsExecutableBlock
(ifOrElseIf.Parent))
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
696
blockFacts.
IsExecutableBlock
(n.Parent) &&
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
77
if (!blockFacts.
IsExecutableBlock
(OutermostBlock))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (1)
79
a => BlockFacts.
IsExecutableBlock
(a) || SyntaxFacts.IsParameterList(a) || SyntaxFacts.IsMethodBody(a));