21 references to CreateBlock
Microsoft.CodeAnalysis.CSharp.Workspaces (21)
CodeGeneration\CSharpSyntaxGenerator.cs (21)
254body: hasBody ? CreateBlock(statements) : null, 277var body = hasBody ? CreateBlock(statements) : null; 370CreateBlock(statements)); 437: accessor.WithBody(CreateBlock(statements)); 522statements != null ? CreateBlock(statements) : null); 653return (method.Body == null && method.ExpressionBody == null) ? method.WithSemicolonToken(default).WithBody(CreateBlock()) : method; 678return accessor.WithSemicolonToken(default).WithBody(CreateBlock(null)); 2332return ((ParenthesizedLambdaExpressionSyntax)declaration).WithBody((CSharpSyntaxNode)expr ?? CreateBlock()); 2335return ((SimpleLambdaExpressionSyntax)declaration).WithBody((CSharpSyntaxNode)expr ?? CreateBlock()); 2502var body = CreateBlock(statements); 3122CreateBlock(trueStatements)); 3131CreateBlock(trueStatements), 3133falseArray is [IfStatementSyntax ifStatement] ? ifStatement : CreateBlock(falseArray))); 3502statement: CreateBlock(statements)); 3510statement: CreateBlock(statements)); 3517statement: CreateBlock(statements)); 3523CreateBlock(tryStatements), 3525finallyStatements != null ? SyntaxFactory.FinallyClause(CreateBlock(finallyStatements)) : null); 3533block: CreateBlock(statements)); 3537=> SyntaxFactory.WhileStatement((ExpressionSyntax)condition, CreateBlock(statements)); 3610=> this.ValueReturningLambdaExpression(parameterDeclarations, CreateBlock(statements));