Пример #1
0
        public override void ExitDtd(HTMLParser.DtdContext context)
        {
            var dtdNode     = context.DTD();
            var dtdNodeText = dtdNode?.GetText();

            if (string.IsNullOrWhiteSpace(dtdNodeText))
            {
                return;
            }
            _results.DtdNodes.Add(dtdNodeText);
        }
Пример #2
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="HTMLParser.dtd"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitDtd([NotNull] HTMLParser.DtdContext context)
 {
 }