1 implementation of IsGlobalStatement
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
239
public bool
IsGlobalStatement
([NotNullWhen(true)] SyntaxNode? node)
4 references to IsGlobalStatement
Microsoft.CodeAnalysis.Features (4)
IntroduceVariable\AbstractIntroduceVariableService.State.cs (1)
106
var globalStatement = Expression.AncestorsAndSelf().FirstOrDefault(syntaxFacts.
IsGlobalStatement
);
ReplaceConditionalWithStatements\AbstractReplaceConditionalWithStatementsCodeRefactoringProvider.cs (1)
240
var isGlobalStatement = syntaxFacts.
IsGlobalStatement
(localDeclarationStatement.Parent);
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UseCollectionInitializerHelpers.cs (2)
68
if (syntaxFacts.
IsGlobalStatement
(containingBlockOrCompilationUnit))
78
var extractedChild = syntaxFacts.
IsGlobalStatement
(childNode)