public static SeparatedSyntaxList <TNode> ToSeparatedList <TNode>(this SyntaxListBuilder builder) where TNode : SyntaxNode
        {
            if (builder == null || builder.Count == 0)
            {
                return(default(SeparatedSyntaxList <TNode>));
            }

            return(new SeparatedSyntaxList <TNode>(new SyntaxNodeOrTokenList(builder.ToListNode().CreateRed(), 0)));
        }
        public static SyntaxTokenList ToTokenList(this SyntaxListBuilder builder)
        {
            if (builder == null || builder.Count == 0)
            {
                return(default(SyntaxTokenList));
            }

            return(new SyntaxTokenList(null, builder.ToListNode(), 0, 0));
        }
        public static SyntaxList <SyntaxNode> ToList(this SyntaxListBuilder builder)
        {
            if (builder == null || builder.Count == 0)
            {
                return(default(SyntaxList <SyntaxNode>));
            }

            return(new SyntaxList <SyntaxNode>(builder.ToListNode().CreateRed()));
        }