protected virtual RangeFilterValue GetRangeFilterValue(Antlr.SearchPhraseParser.RangeContext context) { var lower = context.GetChild <Antlr.SearchPhraseParser.LowerContext>(0)?.GetText(); var upper = context.GetChild <Antlr.SearchPhraseParser.UpperContext>(0)?.GetText(); var rangeStart = context.GetChild <Antlr.SearchPhraseParser.RangeStartContext>(0)?.GetText(); var rangeEnd = context.GetChild <Antlr.SearchPhraseParser.RangeEndContext>(0)?.GetText(); return(new RangeFilterValue { Lower = Unescape(lower), Upper = Unescape(upper), IncludeLower = rangeStart.EqualsInvariant("["), IncludeUpper = rangeEnd.EqualsInvariant("]"), }); }
/// <summary> /// Exit a parse tree produced by <see cref="SearchPhraseParser.range"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitRange([NotNull] SearchPhraseParser.RangeContext context) { }