示例#1
0
        public Block EscapedMarkupTagBlock(
            string prefix,
            string suffix,
            AcceptedCharactersInternal acceptedCharacters,
            params SyntaxTreeNode[] children)
        {
            var newChildren = new List <SyntaxTreeNode>(
                new SyntaxTreeNode[]
            {
                _factory.Markup(prefix),
                _factory.BangEscape(),
                _factory.Markup(suffix).Accepts(acceptedCharacters)
            });

            newChildren.AddRange(children);

            return(new MarkupTagBlock(newChildren.ToArray()));
        }