using System; using System.Collections.Generic; using System.Linq.Expressions; using Remotion.Linq.Clauses.Expressions; using Remotion.Linq.Parsing; using RethinkDb.Driver.Ast; namespace RethinkDb.Driver.Linq { public class SelectionProjector : ThrowingExpressionVisitor { private readonly Stack _stack = new Stack(); public ReqlExpr Current => _stack.Count > 0 ? _stack.Peek() : null; protected override Exception CreateUnhandledItemException( T unhandledItem, string visitMethod ) { throw new NotImplementedException(); } protected override Expression VisitQuerySourceReference( QuerySourceReferenceExpression expression ) { return expression; } } }