/// <summary>
 /// When a product name without version is found.
 /// </summary>
 /// <param name="context">The context node.</param>
 public override void EnterProductNameNoVersion([NotNull] UserAgentParser.ProductNameNoVersionContext context)
 {
     this.InformSubstrings(context, PRODUCT);
 }
예제 #2
0
 /// <summary>
 /// When visiting a product name without version node find the children by name appling the parsing rule for the context.
 /// </summary>
 /// <param name="context">The context node <see cref="UserAgentParser.ProductNameNoVersionContext"/>.</param>
 /// <returns>The found children as <see cref="IEnumerator{IParseTree}"/>.</returns>
 public override IEnumerator <IParseTree> VisitProductNameNoVersion([NotNull] UserAgentParser.ProductNameNoVersionContext context)
 {
     return(this.GetChildrenByName(context));
 }
 /// <summary>
 /// Visit a parse tree produced by <see cref="UserAgentParser.productNameNoVersion"/>.
 /// <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 VisitProductNameNoVersion([NotNull] UserAgentParser.ProductNameNoVersionContext context)
 {
     return(VisitChildren(context));
 }
예제 #4
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="UserAgentParser.productNameNoVersion"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitProductNameNoVersion([NotNull] UserAgentParser.ProductNameNoVersionContext context)
 {
 }