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