/// <summary> /// Visits a range with start and end (from start value to end value(. /// </summary> /// <param name="context">The context<see cref="UserAgentTreeWalkerParser.NumberRangeStartToEndContext"/>.</param> /// <returns>The resulting <see cref="NumberRangeList"/>.</returns> public override NumberRangeList VisitNumberRangeStartToEnd([NotNull] UserAgentTreeWalkerParser.NumberRangeStartToEndContext context) { return(new NumberRangeList( int.Parse(context.rangeStart.Text), int.Parse(context.rangeEnd.Text))); }
/// <summary> /// Exit a parse tree produced by the <c>numberRangeStartToEnd</c> /// labeled alternative in <see cref="UserAgentTreeWalkerParser.numberRange"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitNumberRangeStartToEnd([NotNull] UserAgentTreeWalkerParser.NumberRangeStartToEndContext context) { }
/// <summary> /// Visit a parse tree produced by the <c>numberRangeStartToEnd</c> /// labeled alternative in <see cref="UserAgentTreeWalkerParser.numberRange"/>. /// <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 VisitNumberRangeStartToEnd([NotNull] UserAgentTreeWalkerParser.NumberRangeStartToEndContext context) { return(VisitChildren(context)); }