public override void VisitQuerySelectClause(QuerySelectClause querySelectClause) { var visitor = new CaptureSelectNewFieldNamesVisitor(); querySelectClause.AcceptVisitor(visitor, null); indexData.SelectExpressions = visitor.SelectExpressions; indexData.NumberOfSelectClauses++; }
public override void VisitQuerySelectClause(QuerySelectClause querySelectClause) { var selectExpressions = new Dictionary<string, Expression>(); var visitor = new CaptureSelectNewFieldNamesVisitor(false, new HashSet<string>(), selectExpressions); querySelectClause.AcceptVisitor(visitor, null); indexData.SelectExpressions = selectExpressions; indexData.NumberOfSelectClauses++; }
public override void VisitInvocationExpression(InvocationExpression invocationExpression) { base.VisitInvocationExpression(invocationExpression); var visitor = new CaptureSelectNewFieldNamesVisitor(); invocationExpression.AcceptVisitor(visitor, null); var memberReferenceExpression = invocationExpression.Target as MemberReferenceExpression; if (memberReferenceExpression == null) { base.VisitInvocationExpression(invocationExpression); return; } if (memberReferenceExpression.MemberName == "Where") indexData.HasWhere = true; indexData.SelectExpressions = visitor.SelectExpressions; }
public override void VisitInvocationExpression(InvocationExpression invocationExpression) { base.VisitInvocationExpression(invocationExpression); var selectExpressions = new Dictionary<string, Expression>(); var visitor = new CaptureSelectNewFieldNamesVisitor(false, new HashSet<string>(), selectExpressions); invocationExpression.AcceptVisitor(visitor, null); var memberReferenceExpression = invocationExpression.Target as MemberReferenceExpression; if (memberReferenceExpression == null) { base.VisitInvocationExpression(invocationExpression); return; } if (memberReferenceExpression.MemberName == "Where") indexData.HasWhere = true; indexData.SelectExpressions = selectExpressions; }