21 references to CreateBlock
Microsoft.CodeAnalysis.CSharp.Workspaces (21)
CodeGeneration\CSharpSyntaxGenerator.cs (21)
252body: hasBody ? CreateBlock(statements) : null, 275var body = hasBody ? CreateBlock(statements) : null; 368CreateBlock(statements)); 435: accessor.WithBody(CreateBlock(statements)); 520statements != null ? CreateBlock(statements) : null); 651return (method.Body == null && method.ExpressionBody == null) ? method.WithSemicolonToken(default).WithBody(CreateBlock()) : method; 676return accessor.WithSemicolonToken(default).WithBody(CreateBlock(null)); 2309return ((ParenthesizedLambdaExpressionSyntax)declaration).WithBody((CSharpSyntaxNode)expr ?? CreateBlock()); 2312return ((SimpleLambdaExpressionSyntax)declaration).WithBody((CSharpSyntaxNode)expr ?? CreateBlock()); 2488var body = CreateBlock(statements, existingBlock, addSimplifierAnnotation: false); 3088CreateBlock(trueStatements)); 3097CreateBlock(trueStatements), 3099falseArray is [IfStatementSyntax ifStatement] ? ifStatement : CreateBlock(falseArray))); 3483statement: CreateBlock(statements)); 3491statement: CreateBlock(statements)); 3498statement: CreateBlock(statements)); 3504CreateBlock(tryStatements), 3506finallyStatements != null ? SyntaxFactory.FinallyClause(CreateBlock(finallyStatements)) : null); 3514block: CreateBlock(statements)); 3518=> SyntaxFactory.WhileStatement((ExpressionSyntax)condition, CreateBlock(statements)); 3591=> this.ValueReturningLambdaExpression(parameterDeclarations, CreateBlock(statements));