Пример #1
0
 public Block EscapedMarkupTagBlock(string prefix, string suffix, AcceptedCharacters acceptedCharacters)
 {
     return(new MarkupTagBlock(
                _factory.Markup(prefix),
                _factory.BangEscape(),
                _factory.Markup(suffix).Accepts(acceptedCharacters)));
 }
Пример #2
0
        public Block EscapedMarkupTagBlock(
            string prefix,
            string suffix,
            AcceptedCharacters 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()));
        }