Example #1
0
        private void SerializeFragment(SyntaxNodeOrToken fragment, TextWriter code)
        {
            if (fragment.IsToken)
            {
                fragment.WriteTo(code);
                return;
            }

            var simplified = SimplifyingCodeDisplayRewriter.Default.Visit(fragment.AsNode());

            simplified.WriteTo(code);
        }