public override IQueryable <T> VisitTake(RiqlParser.TakeContext context) { if (!int.TryParse(context.GetText(), out var take) || take <= 0) { throw new RequiresIntegerExeption(context); } this._hasTake = true; return(this._current = this._current.Take(this.LimitTake(take))); }
/// <summary> /// Visit a parse tree produced by <see cref="RiqlParser.take"/>. /// <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 VisitTake([NotNull] RiqlParser.TakeContext context) { return(VisitChildren(context)); }