/// <summary> /// When visiting root node finds the children by name appling the parsing rule for the context. /// </summary> /// <param name="context">The context of the current node <see cref="UserAgentParser.RootElementsContext"/>.</param> /// <returns>The found children as <see cref="IEnumerator{IParseTree}"/>.</returns> public override IEnumerator <IParseTree> VisitRootElements([NotNull] UserAgentParser.RootElementsContext context) { return(this.GetChildrenByName(context)); }
/// <summary> /// Visit a parse tree produced by <see cref="UserAgentParser.rootElements"/>. /// <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 VisitRootElements([NotNull] UserAgentParser.RootElementsContext context) { return(VisitChildren(context)); }
/// <summary> /// Exit a parse tree produced by <see cref="UserAgentParser.rootElements"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitRootElements([NotNull] UserAgentParser.RootElementsContext context) { }