Пример #1
0
        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"));
        }
Пример #2
0
        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"));
        }