Exemple #1
0
        public void VisitGraph(GraphQuery q)
        {
            VisitWithClauses(q.WithDocumentQueries);

            VisitWithEdgePredicates(q.WithEdgePredicates);

            if (q.MatchClause != null)
            {
                VisitMatchExpression(q.MatchClause);
            }

            if (q.Where != null)
            {
                VisitExpression(q.Where);
            }

            if (q.Include != null)
            {
                VisitInclude(q.Include);
            }

            if (q.OrderBy != null)
            {
                VisitOrderBy(q.OrderBy);
            }

            if (q.DeclaredFunctions != null)
            {
                VisitDeclaredFunctions(q.DeclaredFunctions);
            }

            if (q.SelectFunctionBody.FunctionText != null)
            {
                VisitSelectFunctionBody(q.SelectFunctionBody.FunctionText);
            }
        }
Exemple #2
0
 public GraphQuerySyntaxValidatorVisitor(GraphQuery query)
 {
     _query = query;
 }