/// <summary> /// When visit a word range step adds a <see cref="StepWordRange"/>. /// </summary> /// <param name="context">The context<see cref="UserAgentTreeWalkerParser.StepWordRangeContext"/>.</param> /// <returns>The <see cref="object"/>.</returns> public override object VisitStepWordRange([NotNull] UserAgentTreeWalkerParser.StepWordRangeContext context) { var range = WordRangeVisitor.GetRange(context.wordRange()); this.Add(new StepWordRange(range)); this.VisitNext(context.nextStep); return(null); // Void }
/// <summary> /// Exit a parse tree produced by the <c>stepWordRange</c> /// labeled alternative in <see cref="UserAgentTreeWalkerParser.path"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitStepWordRange([NotNull] UserAgentTreeWalkerParser.StepWordRangeContext context) { }
/// <summary> /// Visit a parse tree produced by the <c>stepWordRange</c> /// labeled alternative in <see cref="UserAgentTreeWalkerParser.path"/>. /// <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 VisitStepWordRange([NotNull] UserAgentTreeWalkerParser.StepWordRangeContext context) { return(VisitChildren(context)); }