153 references to Assign
Microsoft.AspNetCore.Components.Endpoints (16)
FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (16)
47
Expression.
Assign
(succeeded, Expression.Constant(true)),
95
body.Add(Expression.
Assign
(foundValueParam, localFoundValueVar));
148
Expression.
Assign
(
162
Expression.
Assign
(succeeded, Expression.Constant(false, typeof(bool))),
193
assignments.Add(Expression.
Assign
(Expression.Property(resultParam, props[i].Property), GetValueLocalVariableValueExpression(propsLocals[i])));
210
yield return Expression.
Assign
(Expression.Property(resultParam, props[i].Property), GetValueLocalVariableValueExpression(propsLocals[i]));
253
Expression.
Assign
(succeeded, Expression.Constant(false, typeof(bool)))));
278
Expression.
Assign
(succeeded, Expression.Constant(false, typeof(bool)))));
355
var propertyConverter = Expression.
Assign
(
409
Expression.
Assign
(succeeded, Expression.Constant(false, typeof(bool)))
413
body.Add(Expression.
Assign
(GetValueLocalVariableFoundExpression(propertyVar), propertyFoundValue));
455
var constructorParameterConverter = Expression.
Assign
(
512
Expression.
Assign
(succeeded, Expression.Constant(false, typeof(bool)))
516
body.Add(Expression.
Assign
(GetValueLocalVariableFoundExpression(constructorParameterVar), propertyFoundValue));
554
Expression.
Assign
(foundValueParam, Expression.Constant(false)),
555
Expression.
Assign
(succeeded, Expression.Constant(true)),
Microsoft.AspNetCore.Http.Extensions (43)
RequestDelegateFactory.cs (25)
364
Expression.
Assign
(
478
: Expression.
Assign
(TargetExpr, Expression.Invoke(targetFactory, FilterContextHttpContextExpr)),
1008
Expression.
Assign
(StatusCodeExpr, Expression.Constant(400))),
1025
Expression.
Assign
(StatusCodeExpr, Expression.Constant(400)),
1637
Expression.
Assign
(argumentExpression, initExpression));
1767
Expression.
Assign
(WasParamCheckFailureExpr, Expression.Constant(true)),
1785
Expression.
Assign
(WasParamCheckFailureExpr, Expression.Constant(true)),
1798
Expression.
Assign
(parameter.ParameterType.IsArray ? Expression.ArrayAccess(argument, index) : argument, Expression.Convert(parsedValue, targetParseType)),
1804
Expression.
Assign
(argument,
1819
Expression.
Assign
(argument, Expression.NewArrayBounds(parameter.ParameterType.GetElementType()!, Expression.ArrayLength(stringArrayExpr!))),
1821
Expression.
Assign
(index, Expression.Constant(0)),
1829
Expression.
Assign
(TempSourceStringExpr, Expression.ArrayIndex(stringArrayExpr!, index)),
1850
Expression.
Assign
(stringArrayExpr!, valueExpression),
1863
Expression.
Assign
(stringArrayExpr!, valueExpression),
1876
Expression.
Assign
(TempSourceStringExpr, valueExpression),
1887
Expression.
Assign
(TempSourceStringExpr, valueExpression),
1924
Expression.
Assign
(argument, valueExpression),
1927
Expression.
Assign
(WasParamCheckFailureExpr, Expression.Constant(true)),
2045
Expression.
Assign
(WasParamCheckFailureExpr, Expression.Constant(true)),
2187
var initializeReaderExpr = Expression.
Assign
(
2195
var setMaxRecursionDepthExpr = Expression.
Assign
(
2246
Expression.
Assign
(formArgument, invokeMapMethodExpr)),
2250
Expression.
Assign
(WasParamCheckFailureExpr, Expression.Constant(true)),
2349
Expression.
Assign
(WasParamCheckFailureExpr, Expression.Constant(true)),
2373
Expression.
Assign
(WasParamCheckFailureExpr, Expression.Constant(true)),
src\Components\Endpoints\src\FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (16)
47
Expression.
Assign
(succeeded, Expression.Constant(true)),
95
body.Add(Expression.
Assign
(foundValueParam, localFoundValueVar));
148
Expression.
Assign
(
162
Expression.
Assign
(succeeded, Expression.Constant(false, typeof(bool))),
193
assignments.Add(Expression.
Assign
(Expression.Property(resultParam, props[i].Property), GetValueLocalVariableValueExpression(propsLocals[i])));
210
yield return Expression.
Assign
(Expression.Property(resultParam, props[i].Property), GetValueLocalVariableValueExpression(propsLocals[i]));
253
Expression.
Assign
(succeeded, Expression.Constant(false, typeof(bool)))));
278
Expression.
Assign
(succeeded, Expression.Constant(false, typeof(bool)))));
355
var propertyConverter = Expression.
Assign
(
409
Expression.
Assign
(succeeded, Expression.Constant(false, typeof(bool)))
413
body.Add(Expression.
Assign
(GetValueLocalVariableFoundExpression(propertyVar), propertyFoundValue));
455
var constructorParameterConverter = Expression.
Assign
(
512
Expression.
Assign
(succeeded, Expression.Constant(false, typeof(bool)))
516
body.Add(Expression.
Assign
(GetValueLocalVariableFoundExpression(constructorParameterVar), propertyFoundValue));
554
Expression.
Assign
(foundValueParam, Expression.Constant(false)),
555
Expression.
Assign
(succeeded, Expression.Constant(true)),
src\Shared\ParameterBindingMethodCache.cs (2)
115
Expression.
Assign
(success, Expression.Call(_enumTryParseMethod, Expression.Constant(type), TempSourceStringExpr, enumAsObject)),
116
Expression.
Assign
(expression,
Microsoft.AspNetCore.Mvc.Abstractions (2)
src\Shared\ParameterBindingMethodCache.cs (2)
115
Expression.
Assign
(success, Expression.Call(_enumTryParseMethod, Expression.Constant(type), TempSourceStringExpr, enumAsObject)),
116
Expression.
Assign
(expression,
Microsoft.AspNetCore.Mvc.Core (3)
ModelBinding\Binders\TryParseModelBinder.cs (3)
131
Expression.
Assign
(ParameterBindingMethodCache.SharedExpressions.TempSourceStringExpr, ValueExpression),
134
Expression.
Assign
(modelValue, Expression.Convert(parsedValue, modelValue.Type)),
135
Expression.
Assign
(BindingResultExpression, Expression.Call(SuccessBindingResultMethod, modelValue))),
Microsoft.AspNetCore.OpenApi (2)
src\Shared\ParameterBindingMethodCache.cs (2)
115
Expression.
Assign
(success, Expression.Call(_enumTryParseMethod, Expression.Constant(type), TempSourceStringExpr, enumAsObject)),
116
Expression.
Assign
(expression,
Microsoft.CSharp (3)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (2)
119
Expression.
Assign
(tempForIncrement, Expression.Convert(arg0.Expression, arg0.Value.GetType())),
121
Expression.
Assign
(arg0.Expression, Expression.Convert(tempForIncrement, arg0.Expression.Type)));
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (1)
491
return Expression.
Assign
(
Microsoft.Extensions.DependencyInjection (3)
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (3)
22
Expression.
Assign
(ResolvedServices,
28
Expression.
Assign
(Sync,
245
BinaryExpression assignExpression = Expression.
Assign
(
Microsoft.VisualBasic.Core (11)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (11)
330
Expression.
Assign
(
341
Expression.
Assign
(result, fallback),
409
Expression.
Assign
(
419
Expression.
Assign
(result, fallback),
495
Expression.
Assign
(
506
Expression.
Assign
(result, fallback),
564
Expression.
Assign
(
575
Expression.
Assign
(result, fallback),
633
Expression.
Assign
(
644
Expression.
Assign
(result, fallback),
1311
writeback.Add(Expression.
Assign
(arg, Expression.ArrayIndex(array, Expression.Constant(i))))
System.Composition.Hosting (2)
System\Composition\Hosting\Providers\Metadata\MetadataViewProvider.cs (2)
50
blockExprs.Add(Expression.
Assign
(resultVar, Expression.New(parameterlessConstructor)));
60
var assign = Expression.
Assign
(
System.Composition.TypedParts (2)
System\Composition\TypedParts\ActivationFeatures\PropertyInjectionFeature.cs (2)
80
var assignTyped = Expression.
Assign
(typed, Expression.Convert(inst, partType.AsType()));
87
var assignment = Expression.
Assign
(
System.Linq.Expressions (59)
System\Dynamic\BindingRestrictions.cs (1)
321
Expression.
Assign
(
System\Dynamic\DynamicObject.cs (6)
471
Expression.
Assign
(
649
method != DynamicObject_TryBinaryOperation ? Expression.
Assign
(callArgs, Expression.NewObjectArrayInit(callArgsValue)) : Expression.
Assign
(callArgs, callArgsValue[0]),
709
Expression.
Assign
(callArgs, Expression.NewObjectArrayInit(callArgsValue)),
718
Expression.
Assign
(result, Expression.Convert(value, typeof(object)))
772
Expression.
Assign
(callArgs, Expression.NewObjectArrayInit(callArgsValue)),
System\Linq\Expressions\BinaryExpression.cs (11)
170
return Expression.
Assign
(Left, r);
193
Expression e1 = Expression.
Assign
(temp1, member.Expression);
204
e2 = Expression.
Assign
(temp2, e2);
207
Expression e3 = Expression.
Assign
(Expression.MakeMemberAccess(temp1, member.Member), temp2);
239
exprs.UncheckedAdd(Expression.
Assign
(tempObj, index.Object));
249
exprs.UncheckedAdd(Expression.
Assign
(tempArg, arg));
264
exprs.UncheckedAdd(Expression.
Assign
(tempValue, op));
267
exprs.UncheckedAdd(Expression.
Assign
(tempIndex, tempValue));
406
Assign
(left, Left),
415
Assign
(right, Right),
927
ExpressionType.Assign =>
Assign
(left, right),
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (4)
695
Expression.
Assign
(
734
Expression.
Assign
(switchValue, node.SwitchValue),
737
Expression.
Assign
(switchIndex, Utils.Constant(nullCase)),
741
Expression.
Assign
(switchIndex, Utils.Constant(-1))
System\Linq\Expressions\MemberInitExpression.cs (3)
75
block[0] =
Assign
(objVar, objExpression);
91
block[0] =
Assign
(listVar, listExpression);
107
MemberBindingType.Assignment => Expression.
Assign
(member, ((MemberAssignment)binding).Expression),
System\Linq\Expressions\TypeBinaryExpression.cs (2)
98
Expression.
Assign
(parameter, Expression),
120
Expression.
Assign
(temp, getType),
System\Linq\Expressions\UnaryExpression.cs (12)
158
return
Assign
(Operand, FunctionalOp(Operand));
169
Assign
(temp, Operand),
170
Assign
(Operand, FunctionalOp(temp)),
187
BinaryExpression initTemp1 =
Assign
(temp1, member.Expression);
200
Assign
(member, FunctionalOp(member))
216
Assign
(temp2, member),
217
Assign
(member, FunctionalOp(temp2)),
247
block[i] =
Assign
(temps[i], index.Object);
253
block[i] =
Assign
(temps[i], arg);
260
block[i] =
Assign
(temps[i], index);
263
block[i++] =
Assign
(index, FunctionalOp(lastTemp));
269
block[i++] =
Assign
(index, FunctionalOp(index));
System\Runtime\CompilerServices\CallSite.cs (20)
377
body.UncheckedAdd(Expression.
Assign
(@this, Expression.Convert(site, @this.Type)));
389
body.UncheckedAdd(Expression.
Assign
(originalRule, target));
403
Expression.
Assign
(
443
Expression.
Assign
(result!, invokeRule),
451
Expression getApplicableRuleAtIndex = Expression.
Assign
(rule, Expression.ArrayAccess(applicable, new TrueReadOnlyCollection<Expression>(index)));
466
Expression.
Assign
(
478
Expression.
Assign
(count, Expression.ArrayLength(applicable)),
479
Expression.
Assign
(index, Utils.Constant(0)),
490
Expression.
Assign
(
518
Expression.
Assign
(
527
Expression.
Assign
(
549
Expression.
Assign
(result!, invokeRule),
570
getRule = Expression.
Assign
(
575
body.UncheckedAdd(Expression.
Assign
(index, Utils.Constant(0)));
576
body.UncheckedAdd(Expression.
Assign
(count, Expression.ArrayLength(applicable)));
594
body.UncheckedAdd(Expression.
Assign
(rule, Expression.Constant(null, rule.Type)));
600
Expression.
Assign
(
606
Expression setOldTarget = Expression.
Assign
(
611
getRule = Expression.
Assign
(
613
Expression.
Assign
(
System.Private.Xml (1)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
2131
var assignExpr = Expression.
Assign
(fieldExpr, valueParam);
System.ServiceModel.Primitives (6)
System\ServiceModel\Dispatcher\InvokerUtil.cs (6)
135
expressions.Add(Expression.
Assign
(variable, Expression.Convert(Expression.ArrayIndex(inputsParam, Expression.Constant(inputParameterCount)), variableType)));
155
expressions.Add(Expression.
Assign
(result, Expression.Convert(Expression.Call(castTargetParam, method, invocationParameters), typeof(object))));
159
expressions.Add(Expression.
Assign
(result, Expression.Call(castTargetParam, method, invocationParameters)));
165
expressions.Add(Expression.
Assign
(result, Expression.Constant(null, typeof(object))));
173
expressions.Add(Expression.
Assign
(
179
expressions.Add(Expression.
Assign
(