11 references to GlobalStatement
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
110
compilationUnit.Members.ReplaceRange((GlobalStatementSyntax)usingStatement.GetRequiredParent(), expandedUsingStatements.Select(
GlobalStatement
))),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
512
var wrappedStatements = StatementGenerator.GenerateStatements(statements).Select(
GlobalStatement
).ToArray();
Microsoft.CodeAnalysis.CSharp.Features (4)
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (1)
273
globalStatements.Add(
GlobalStatement
(statement).WithAdditionalAnnotations(Formatter.Annotation));
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (1)
337
_statementsOrMemberOrAccessorToInsert.Select(s => global ? SyntaxFactory.
GlobalStatement
((StatementSyntax)s) : (MemberDeclarationSyntax)s));
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
348
currentCompilationUnit.Members.Insert(firstAffectedGlobalStatementIndex,
GlobalStatement
(declarationStatement)));
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
110
compilationUnit.Members.ReplaceRange((GlobalStatementSyntax)usingStatement.GetRequiredParent(), expandedUsingStatements.Select(
GlobalStatement
))),
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
CodeGeneration\CSharpSyntaxGenerator.cs (3)
3025
newDeclarations = newDeclarations.Select(declaration => declaration is StatementSyntax statement ? SyntaxFactory.
GlobalStatement
(statement) : declaration);
3064
newDeclarations = newDeclarations.Select(declaration => declaration is StatementSyntax statement ? SyntaxFactory.
GlobalStatement
(statement) : declaration);
3656
=> SyntaxFactory.
GlobalStatement
((StatementSyntax)statement);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
512
var wrappedStatements = StatementGenerator.GenerateStatements(statements).Select(
GlobalStatement
).ToArray();
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
512
var wrappedStatements = StatementGenerator.GenerateStatements(statements).Select(
GlobalStatement
).ToArray();