51 references to PatternRules
System.Data.Services.Client (51)
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (8)
349
if (ResourceBinder.
PatternRules
.MatchConvertToAssignable(u))
381
var nullCheck = ResourceBinder.
PatternRules
.MatchNullCheck(this.box.ParamExpressionInScope, c);
407
if (ResourceBinder.
PatternRules
.MatchNonPrivateReadableProperty(m, out pi))
467
if (ResourceBinder.
PatternRules
.MatchNewDataServiceCollectionOfT(nex))
562
if (!ResourceBinder.
PatternRules
.MatchConvertToAssignable(u))
596
var nullCheck = ResourceBinder.
PatternRules
.MatchNullCheck(this.box.ParamExpressionInScope, c);
641
if (ResourceBinder.
PatternRules
.MatchNonPrivateReadableProperty(m, out pi))
703
!ResourceBinder.
PatternRules
.MatchNewDataServiceCollectionOfT(nex))
System\Data\Services\Client\ALinq\ProjectionRewriter.cs (1)
47
if (!ResourceBinder.
PatternRules
.MatchSingleArgumentLambda(le, out le) || // can only rewrite single parameter Lambdas.
System\Data\Services\Client\ALinq\ResourceBinder.cs (36)
366
if (
PatternRules
.MatchKeyComparison(predicate, out property, out constantValue))
395
var properties =
PatternRules
.GetKeyProperties(target.CreateReference().Type);
449
if (
PatternRules
.MatchAnd(e))
495
if (!
PatternRules
.MatchParameterMemberAccess(collectionSelector))
502
if (!
PatternRules
.MatchDoubleArgumentLambda(resultSelector, out resultLambda))
520
if (!
PatternRules
.MatchPropertyProjectionSet(source, collectorReference, out navigationMember))
529
if (!
PatternRules
.MatchMemberInitExpressionWithDefaultConstructor(resultSelectorSource, resultLambda) &&
530
!
PatternRules
.MatchNewExpression(resultSelectorSource, resultLambda))
567
if (!
PatternRules
.MatchSingleArgumentLambda(mce.Arguments[1], out lambda))
607
if (!
PatternRules
.MatchSingleArgumentLambda(mce.Arguments[1], out le))
611
else if (
PatternRules
.MatchIdentitySelector(le))
615
else if (
PatternRules
.MatchTransparentIdentitySelector(input, le))
621
PatternRules
.MatchPropertyProjectionSingleton(navSource, boundProjection, out navigationMember))
664
if (!
PatternRules
.MatchSingleArgumentLambda(mce.Arguments[1], out collectorSelector))
677
if (
PatternRules
.MatchPropertyProjectionSet(input, navPropRef, out navigationMember))
717
if (
PatternRules
.MatchTransparentScopeSelector(sourceResourceSet, selector, out transparentScope))
722
else if (
PatternRules
.MatchIdentityProjectionResultSelector(selector))
726
else if (
PatternRules
.MatchMemberInitExpressionWithDefaultConstructor(sourceResourceSet, selector) ||
PatternRules
.MatchNewExpression(sourceResourceSet, selector))
994
if (unary != null &&
PatternRules
.MatchConvertToAssignable(unary))
1054
PatternRules
.MatchSingleArgumentLambda(mce.Arguments[1], out lambda))
1176
if (
PatternRules
.MatchStringAddition(e))
1193
PatternRules
.MatchNonPrivateReadableProperty(me, out pi) &&
1505
if (!
PatternRules
.MatchNonPrivateReadableProperty(expression, out pi))
1540
if (
PatternRules
.MatchBinaryEquality(e))
1543
if ((
PatternRules
.MatchKeyProperty(be.Left, out keyProperty) &&
PatternRules
.MatchConstant(be.Right, out keyValue)) ||
1544
(
PatternRules
.MatchKeyProperty(be.Right, out keyProperty) &&
PatternRules
.MatchConstant(be.Left, out keyValue)))
1859
if (
PatternRules
.MatchNonSingletonProperty(potentialPropertyRef) == requireSet)
2040
return (
PatternRules
.MatchBinaryExpression(e) && ((BinaryExpression)e).NodeType == ExpressionType.Equal);
2240
if (
PatternRules
.MatchResource(e, out resource) && resource.Projection != null)
2249
if (!
PatternRules
.MatchResource(e, out re))
2268
if (!
PatternRules
.MatchResource(e, out re))
2282
if (!
PatternRules
.MatchResource(e, out re))
2297
if (!
PatternRules
.MatchResource(e, out re))
System\Data\Services\Client\MemberAssignmentAnalysis.cs (1)
152
var nullCheck = ResourceBinder.
PatternRules
.MatchNullCheck(this.entity, c);
System\Data\Services\Client\ProjectionPlanCompiler.cs (5)
145
var nullCheck = ResourceBinder.
PatternRules
.MatchNullCheck(this.pathBuilder.LambdaParameterInScope, conditional);
291
ProjectionAnalyzer.IsMethodCallAllowedEntitySequence(m) || ResourceBinder.
PatternRules
.MatchReferenceEquals(m),
331
if (ResourceBinder.
PatternRules
.MatchNewDataServiceCollectionOfT(nex))
484
private Expression RebindConditionalNullCheck(ConditionalExpression conditional, ResourceBinder.
PatternRules
.MatchNullCheckResult nullCheck)
835
ResourceBinder.
PatternRules
.MatchNewDataServiceCollectionOfT(nex),