29 references to ExpressionUtilities
System.Activities (29)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (2)
250
if (!
ExpressionUtilities
.IsLocation(lambda, targetType, out extraErrorMessage))
279
if (!
ExpressionUtilities
.IsLocation(lambda, targetType, out extraErrorMessage))
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (4)
469
FindParameter(finalBody) ??
ExpressionUtilities
.RuntimeContextParameter);
577
FindParameter(finalBody) ??
ExpressionUtilities
.RuntimeContextParameter);
863
if (
ExpressionUtilities
.TryGetInlinedReference(localPublicAccessor,
869
return
ExpressionUtilities
.CreateIdentifierExpression(finalReference);
Microsoft\VisualBasic\Activities\VisualBasicReference.cs (3)
69
this.locationFactory =
ExpressionUtilities
.CreateLocationFactory<TResult>(this.expressionTree);
146
return
ExpressionUtilities
.RewriteNonCompiledExpressionTree((LambdaExpression)this.expressionTree);
163
if (!publicAccessor.ActivityMetadata.HasViolations && (expressionTreeToReturn == null || !
ExpressionUtilities
.IsLocation(expressionTreeToReturn, typeof(TResult), out extraErrorMessage)))
Microsoft\VisualBasic\Activities\VisualBasicValue.cs (1)
143
return
ExpressionUtilities
.RewriteNonCompiledExpressionTree((LambdaExpression)this.expressionTree);
System\Activities\Expressions\LambdaReference.cs (3)
50
if (
ExpressionUtilities
.TryRewriteLambdaExpression(this.locationExpression, out newTree, publicAccessor, true))
61
if (!
ExpressionUtilities
.IsLocation(this.rewrittenTree, typeof(T), out extraErrorMessage))
76
this.locationFactory =
ExpressionUtilities
.CreateLocationFactory<T>(this.rewrittenTree);
System\Activities\Expressions\LambdaValue.cs (1)
50
if (
ExpressionUtilities
.TryRewriteLambdaExpression(this.lambdaValue, out newTree, publicAccessor))
System\Activities\ExpressionUtilities.cs (12)
23
static MethodInfo createLocationFactoryGenericMethod = typeof(
ExpressionUtilities
).GetMethod("CreateLocationFactory");
283
this.arrayFunction =
ExpressionUtilities
.Compile<T[]>(arrayIndexExpression.Left, expression.Parameters);
284
this.indexFunction =
ExpressionUtilities
.Compile<int>(arrayIndexExpression.Right, expression.Parameters);
354
this.ownerFunction =
ExpressionUtilities
.Compile<object>(
458
this.argumentFunction =
ExpressionUtilities
.Compile<Argument>(argumentExpression, expressionParameters);
475
this.locationReferenceFunction =
ExpressionUtilities
.Compile<LocationReference>(locationReferenceExpression, expressionParameters);
521
this.targetObjectFunction =
ExpressionUtilities
.Compile<object>(callExpression.Object, expression.Parameters);
532
this.setItemArgumentFunctions[i] =
ExpressionUtilities
.Compile<object>(argument, expression.Parameters);
665
this.arrayFunction =
ExpressionUtilities
.Compile<Array>(
671
this.indexFunctions[i] =
ExpressionUtilities
.Compile<int>(
750
this.ownerFunction =
ExpressionUtilities
.Compile<object>(
1982
new ParameterExpression[] {
ExpressionUtilities
.RuntimeContextParameter }));
System\Activities\XamlIntegration\CompiledDataContext.cs (1)
80
new ParameterExpression[] {
ExpressionUtilities
.RuntimeContextParameter }));
System\Activities\XamlIntegration\ExpressionTreeRewriter.cs (2)
68
newNode =
ExpressionUtilities
.CreateIdentifierExpression(((ILocationReferenceWrapper)locationReference).LocationReference);
72
newNode =
ExpressionUtilities
.CreateIdentifierExpression(locationReference);