11 references to GenerateStatements
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConstructorGenerator.cs (1)
112: StatementGenerator.GenerateStatements(CodeGenerationConstructorInfo.GetStatements(constructor));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (6)
500return (accessorDeclaration.Body == null) ? destinationMember : Cast<TDeclarationNode>(accessorDeclaration.AddBodyStatements([.. StatementGenerator.GenerateStatements(statements)])); 510var wrappedStatements = StatementGenerator.GenerateStatements(statements).Select(GlobalStatement).ToArray(); 519return Cast<TDeclarationNode>(block.AddStatements([.. StatementGenerator.GenerateStatements(statements)])); 583.WithBody(body.WithStatements(body.Statements.AddRange(StatementGenerator.GenerateStatements(statements)))); 604.WithBody(body.WithStatements(body.Statements.AddRange(StatementGenerator.GenerateStatements(statements)))); 629.WithBody(body.WithStatements(body.Statements.AddRange(StatementGenerator.GenerateStatements(statements))));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\DestructorGenerator.cs (1)
70: StatementGenerator.GenerateStatements(CodeGenerationDestructorInfo.GetStatements(constructor));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
178StatementGenerator.GenerateStatements(CodeGenerationMethodInfo.GetStatements(accessor)));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
311StatementGenerator.GenerateStatements(CodeGenerationMethodInfo.GetStatements(accessor)));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\StatementGenerator.cs (1)
21StatementGenerator.GenerateStatements(CodeGenerationMethodInfo.GetStatements(method)));