public void BlockTest() { var block = SyntaxFactory.ParseExpression("() => { foo(); bar(); baz(); }") .DescendantNodes() .Single(n => n.Kind() == SyntaxKind.Block); var result = new LayoutEngine(LayoutOptions.Default).PerformLayout(block); Console.WriteLine(result.ToFullString().Replace("\t", @"\t")); }