コード例 #1
0
 public QueryWhereExpressionWithCodeAnalysis()
 {
     node       = new QueryExpressionNode <QueryWhereExpressionWithCodeAnalysis, WhereClauseSyntax>(this);
     expression = new CachedExpressionNode <QueryWhereExpressionWithCodeAnalysis, WhereClauseSyntax>(
         node,
         syntax => syntax.Condition,
         (parentSyntax, childSyntax) => parentSyntax.WithCondition(childSyntax));
 }
コード例 #2
0
 internal QueryFromExpressionWithCodeAnalysis()
 {
     node       = new QueryExpressionNode <QueryFromExpressionWithCodeAnalysis, FromClauseSyntax>(this);
     expression = new CachedExpressionNode <QueryFromExpressionWithCodeAnalysis, FromClauseSyntax>(
         node,
         syntax => syntax.Expression,
         (parentSyntax, childSyntax) => parentSyntax.WithExpression(childSyntax));
 }
コード例 #3
0
 internal QueryOrderByExpressionWithCodeAnalysis()
 {
     node   = new QueryExpressionNode <QueryOrderByExpressionWithCodeAnalysis, OrderByClauseSyntax>(this);
     orders = new SeparatedSyntaxNodeList <QueryOrderByExpressionWithCodeAnalysis, OrderByClauseSyntax, QueryOrderingExpressionWithCodeAnalysis, OrderingSyntax>(
         node,
         syntax => syntax.Orderings,
         (parentSyntax, childSyntax) => parentSyntax.WithOrderings(childSyntax),
         () => new QueryOrderingExpressionWithCodeAnalysis());
 }
コード例 #4
0
 public QueryJoinExpressionWithCodeAnalysis()
 {
     node             = new QueryExpressionNode <QueryJoinExpressionWithCodeAnalysis, JoinClauseSyntax>(this);
     equalsExpression = new CachedExpressionNode <QueryJoinExpressionWithCodeAnalysis, JoinClauseSyntax>(
         node,
         syntax => syntax.RightExpression,
         (parentSyntax, childSyntax) => parentSyntax.WithRightExpression(childSyntax));
     inExpression = new CachedExpressionNode <QueryJoinExpressionWithCodeAnalysis, JoinClauseSyntax>(
         node,
         syntax => syntax.InExpression,
         (parentSyntax, childSyntax) => parentSyntax.WithInExpression(childSyntax));
     onExpression = new CachedExpressionNode <QueryJoinExpressionWithCodeAnalysis, JoinClauseSyntax>(
         node,
         syntax => syntax.LeftExpression,
         (parentSyntax, childSyntax) => parentSyntax.WithLeftExpression(childSyntax));
 }