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