/// <summary> /// When a comment node is found. /// </summary> /// <param name="context">The context node.</param> public override void EnterCommentBlock([NotNull] UserAgentParser.CommentBlockContext context) { this.Inform(context, COMMENTS); }
/// <summary> /// When visiting a comment block node finds the children by name appling the parsing rule for the context. /// </summary> /// <param name="context">The context<see cref="UserAgentParser.CommentBlockContext"/>.</param> /// <returns>The found children as <see cref="IEnumerator{IParseTree}"/>.</returns> public override IEnumerator <IParseTree> VisitCommentBlock([NotNull] UserAgentParser.CommentBlockContext context) { return(this.GetChildrenByName(context)); }
/// <summary> /// Visit a parse tree produced by <see cref="UserAgentParser.commentBlock"/>. /// <para> /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/> /// on <paramref name="context"/>. /// </para> /// </summary> /// <param name="context">The parse tree.</param> /// <return>The visitor result.</return> public virtual Result VisitCommentBlock([NotNull] UserAgentParser.CommentBlockContext context) { return(VisitChildren(context)); }
/// <summary> /// Exit a parse tree produced by <see cref="UserAgentParser.commentBlock"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitCommentBlock([NotNull] UserAgentParser.CommentBlockContext context) { }