85 references to Variable
Microsoft.AspNetCore.Components.Endpoints (8)
FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (8)
36var propertyFoundValue = Expression.Variable(typeof(bool), "foundValueForProperty"); 37var succeeded = Expression.Variable(typeof(bool), "succeeded"); 38var localFoundValueVar = Expression.Variable(typeof(bool), "localFoundValue"); 39var exceptionVar = Expression.Variable(typeof(Exception), "mappingException"); 145var exception = Expression.Variable(typeof(Exception), "constructorException"); 344var propertyConverterVar = Expression.Variable(propertyConverterType, $"{property.Name}Converter"); 444var constructorParameterConverterVar = Expression.Variable(constructorParameterConverterType, $"{constructorParameter.Name}Converter"); 537return Expression.Variable(typeof(ValueTuple<,>).MakeGenericType(typeof(bool), constructorParameter.Type), constructorParameter.Name);
Microsoft.AspNetCore.Http.Extensions (23)
RequestDelegateFactory.cs (12)
87private static readonly ParameterExpression WasParamCheckFailureExpr = Expression.Variable(typeof(bool), "wasParamCheckFailure"); 1570var argumentExpression = Expression.Variable(parameter.ParameterType, $"{parameter.Name}_local"); 1668var argument = Expression.Variable(parameter.ParameterType, $"{parameter.Name}_local"); 1752var parsedValue = Expression.Variable(nonNullableParameterType, "parsedValue"); 1781var index = Expression.Variable(typeof(int), "index"); 1798var stringArrayExpr = parameter.ParameterType.IsArray ? Expression.Variable(typeof(string[]), "tempStringArray") : null; 1895var argument = Expression.Variable(parameter.ParameterType, $"{parameter.Name}_local"); 2112var formArgument = Expression.Variable(parameter.ParameterType, $"{parameter.Name}_local"); 2133var formReader = Expression.Variable(typeof(FormDataReader), $"{parameter.Name}_reader"); 2134var formDict = Expression.Variable(typeof(IReadOnlyDictionary<FormKey, StringValues>), "form_dict"); 2135var formBuffer = Expression.Variable(typeof(char[]), "form_buffer"); 2136var formDataMappingException = Expression.Variable(typeof(FormDataMappingException), "form_exception");
src\Components\Endpoints\src\FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (8)
36var propertyFoundValue = Expression.Variable(typeof(bool), "foundValueForProperty"); 37var succeeded = Expression.Variable(typeof(bool), "succeeded"); 38var localFoundValueVar = Expression.Variable(typeof(bool), "localFoundValue"); 39var exceptionVar = Expression.Variable(typeof(Exception), "mappingException"); 145var exception = Expression.Variable(typeof(Exception), "constructorException"); 344var propertyConverterVar = Expression.Variable(propertyConverterType, $"{property.Name}Converter"); 444var constructorParameterConverterVar = Expression.Variable(constructorParameterConverterType, $"{constructorParameter.Name}Converter"); 537return Expression.Variable(typeof(ValueTuple<,>).MakeGenericType(typeof(bool), constructorParameter.Type), constructorParameter.Name);
src\Shared\ParameterBindingMethodCache.cs (3)
38internal static readonly ParameterExpression TempSourceStringExpr = Expression.Variable(typeof(string), "tempSourceString"); 105var enumAsObject = Expression.Variable(typeof(object), "enumAsObject"); 106var success = Expression.Variable(typeof(bool), "success");
Microsoft.AspNetCore.Http.Extensions.Tests (9)
ParameterBindingMethodCacheTests.cs (9)
33var call = methodFound!(Expression.Variable(type, "parsedValue"), Expression.Constant(CultureInfo.InvariantCulture)) as MethodCallExpression; 51var call = methodFound!(Expression.Variable(typeof(Uri), "parsedValue"), Expression.Constant(UriKind.RelativeOrAbsolute)) as MethodCallExpression; 73var call = methodFound!(Expression.Variable(type, "parsedValue"), Expression.Constant(CultureInfo.InvariantCulture)) as MethodCallExpression; 105var call = methodFound!(Expression.Variable(type, "parsedValue"), Expression.Constant(CultureInfo.InvariantCulture)) as MethodCallExpression; 129var call = methodFound!(Expression.Variable(type, "parsedValue"), Expression.Constant(CultureInfo.InvariantCulture)) as MethodCallExpression; 183var call = methodFound!(Expression.Variable(type, "parsedValue"), Expression.Constant(CultureInfo.InvariantCulture)) as MethodCallExpression; 204var parsedValue = Expression.Variable(type, "parsedValue"); 229var parsedValue = Expression.Variable(type, "parsedValue"); 260var parsedValue = Expression.Variable(type, "parsedValue");
Microsoft.AspNetCore.Mvc.Abstractions (3)
src\Shared\ParameterBindingMethodCache.cs (3)
38internal static readonly ParameterExpression TempSourceStringExpr = Expression.Variable(typeof(string), "tempSourceString"); 105var enumAsObject = Expression.Variable(typeof(object), "enumAsObject"); 106var success = Expression.Variable(typeof(bool), "success");
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\Binders\TryParseModelBinder.cs (2)
126var parsedValue = Expression.Variable(modelType, "parsedValue"); 127var modelValue = Expression.Variable(typeof(object), "model");
Microsoft.AspNetCore.OpenApi (3)
src\Shared\ParameterBindingMethodCache.cs (3)
38internal static readonly ParameterExpression TempSourceStringExpr = Expression.Variable(typeof(string), "tempSourceString"); 105var enumAsObject = Expression.Variable(typeof(object), "enumAsObject"); 106var success = Expression.Variable(typeof(bool), "success");
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (1)
55tempForIncrement = Expression.Variable(value != null ? value.GetType() : typeof(object), "t0");
Microsoft.Extensions.DependencyInjection (4)
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (4)
19private static readonly ParameterExpression ResolvedServices = Expression.Variable(typeof(IDictionary<ServiceCacheKey, object>), ScopeParameter.Name + "resolvedServices"); 20private static readonly ParameterExpression Sync = Expression.Variable(typeof(object), ScopeParameter.Name + "sync"); 233ParameterExpression resolvedVariable = Expression.Variable(typeof(object), "resolved"); 271ParameterExpression lockWasTaken = Expression.Variable(typeof(bool), "lockWasTaken");
Microsoft.VisualBasic.Core (10)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (10)
322Dim result As ParameterExpression = Expression.Variable(GetType(Object), "result") 323Dim array As ParameterExpression = Expression.Variable(GetType(Object()), "array") 401Dim result As ParameterExpression = Expression.Variable(GetType(Object), "result") 402Dim array As ParameterExpression = Expression.Variable(GetType(Object()), "array") 489Dim result As ParameterExpression = Expression.Variable(GetType(Object), "result") 490Dim array As ParameterExpression = Expression.Variable(GetType(Object()), "array") 558Dim result As ParameterExpression = Expression.Variable(GetType(Object), "result") 559Dim array As ParameterExpression = Expression.Variable(GetType(Object()), "array") 627Dim result As ParameterExpression = Expression.Variable(GetType(Object), "result") 628Dim array As ParameterExpression = Expression.Variable(GetType(Object()), "array")
System.Composition.Hosting (1)
System\Composition\Hosting\Providers\Metadata\MetadataViewProvider.cs (1)
47var resultVar = Expression.Variable(typeof(TMetadata), "result");
System.Linq.Expressions (21)
System\Linq\Expressions\BinaryExpression.cs (5)
190ParameterExpression temp1 = Variable(member.Expression.Type, "temp1"); 203ParameterExpression temp2 = Variable(e2.Type, "temp2"); 237ParameterExpression tempObj = Expression.Variable(index.Object!.Type, "tempObj"); 246ParameterExpression tempArg = Expression.Variable(arg.Type, "tempArg" + i); 262ParameterExpression tempValue = Expression.Variable(op.Type, "tempValue");
System\Linq\Expressions\Compiler\HoistedLocals.cs (1)
84SelfVariable = Expression.Variable(typeof(object[]), name: null);
System\Linq\Expressions\Compiler\LambdaCompiler.Binary.cs (2)
97ParameterExpression p1 = Expression.Variable(b.Left.Type.GetNonNullableType(), name: null); 98ParameterExpression p2 = Expression.Variable(b.Right.Type.GetNonNullableType(), name: null);
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (2)
729ParameterExpression switchValue = Expression.Variable(typeof(string), "switchValue"); 730ParameterExpression switchIndex = Expression.Variable(typeof(int), "switchIndex");
System\Linq\Expressions\Compiler\LambdaCompiler.Unary.cs (1)
354ParameterExpression v = Expression.Variable(node.Operand.Type.GetNonNullableType(), name: null);
System\Linq\Expressions\ParameterExpression.cs (1)
167return Variable(type, name: null);
System\Runtime\CompilerServices\CallSite.cs (9)
375ParameterExpression @this = Expression.Variable(typeof(CallSite<T>), "this"); 379ParameterExpression applicable = Expression.Variable(typeof(T[]), "applicable"); 382ParameterExpression rule = Expression.Variable(typeof(T), "rule"); 385ParameterExpression originalRule = Expression.Variable(typeof(T), "originalRule"); 394vars.UncheckedAdd(result = Expression.Variable(@return.Type, "result")); 397ParameterExpression count = Expression.Variable(typeof(int), "count"); 399ParameterExpression index = Expression.Variable(typeof(int), "index"); 514ParameterExpression cache = Expression.Variable(typeof(RuleCache<T>), "cache"); 596ParameterExpression args = Expression.Variable(typeof(object[]), "args");