/// <summary> /// When a product version is found. /// </summary> /// <param name="context">The context node.</param> public override void EnterProductVersion([NotNull] UserAgentParser.ProductVersionContext context) { this.EnterProductVersion(context); }
/// <summary> /// When visiting a product name with a version 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.ProductVersionContext"/>.</param> /// <returns>The found children as <see cref="IEnumerator{IParseTree}"/>.</returns> public override IEnumerator <IParseTree> VisitProductVersion([NotNull] UserAgentParser.ProductVersionContext context) { return(this.GetChildrenByName(context)); }
/// <summary> /// Visit a parse tree produced by <see cref="UserAgentParser.productVersion"/>. /// <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 VisitProductVersion([NotNull] UserAgentParser.ProductVersionContext context) { return(VisitChildren(context)); }
/// <summary> /// Exit a parse tree produced by <see cref="UserAgentParser.productVersion"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitProductVersion([NotNull] UserAgentParser.ProductVersionContext context) { }