1 instantiation of LocalDefinition
System.Linq.Expressions (1)
System\Linq\Expressions\Interpreter\LocalVariables.cs (1)
91return new LocalDefinition(result.Index, variable);
48 references to LocalDefinition
System.Linq.Expressions (48)
System\Linq\Expressions\Interpreter\LightCompiler.cs (43)
294private static readonly LocalDefinition[] s_emptyLocals = Array.Empty<LocalDefinition>(); 317LocalDefinition local = _locals.DefineLocal(p, 0); 521LocalDefinition[] end = CompileBlockStart(node); 529private LocalDefinition[] CompileBlockStart(BlockExpression node) 533LocalDefinition[] locals; 539locals = new LocalDefinition[variables.Count]; 543LocalDefinition local = _locals.DefineLocal(variable, start); 562private void CompileBlockEnd(LocalDefinition[] locals) 564foreach (LocalDefinition local in locals) 623LocalDefinition local = default(LocalDefinition); 677LocalDefinition local = _locals.DefineLocal(Expression.Parameter(value.Type), start); 708LocalDefinition local = _locals.DefineLocal(Expression.Parameter(value.Type), start); 769LocalDefinition leftTemp = _locals.DefineLocal(Expression.Parameter(node.Left.Type), _instructions.Count); 773LocalDefinition rightTemp = _locals.DefineLocal(Expression.Parameter(node.Right.Type), _instructions.Count); 1047LocalDefinition opTemp = _locals.DefineLocal(Expression.Parameter(operandType), _instructions.Count); 1378LocalDefinition result = _locals.DefineLocal(Expression.Parameter(node.Left.Type), _instructions.Count); 1379LocalDefinition leftTemp = _locals.DefineLocal(Expression.Parameter(node.Left.Type), _instructions.Count); 1403LocalDefinition rightTemp = _locals.DefineLocal(Expression.Parameter(node.Right.Type), _instructions.Count); 1599LocalDefinition temp = _locals.DefineLocal(Expression.Parameter(node.SwitchValue.Type), _instructions.Count); 2011LocalDefinition local = _locals.DefineLocal(parameter, _instructions.Count); 2205LocalDefinition left = _locals.DefineLocal(Expression.Parameter(array.Type, nameof(array)), _instructions.Count); 2206LocalDefinition right = _locals.DefineLocal(Expression.Parameter(index.Type, nameof(index)), _instructions.Count); 2267LocalDefinition? objTmp = null; 2277var indexLocals = new LocalDefinition[count]; 2283LocalDefinition argTmp = _locals.DefineLocal(Expression.Parameter(arg.Type), _instructions.Count); 2305LocalDefinition? memberTemp = null; 2360LocalDefinition objTmp = _locals.DefineLocal(Expression.Parameter(array.Type), _instructions.Count); 2365var indexLocals = new LocalDefinition[count]; 2371LocalDefinition argTmp = _locals.DefineLocal(Expression.Parameter(arg.Type), _instructions.Count); 2643LocalDefinition local = _locals.DefineLocal(temp, _instructions.Count); 3161private readonly LocalDefinition _array, _index; 3163public ArrayByRefUpdater(LocalDefinition array, LocalDefinition index, int argumentIndex) 3185private readonly LocalDefinition? _object; 3188public FieldByRefUpdater(LocalDefinition? obj, FieldInfo field, int argumentIndex) 3212private readonly LocalDefinition? _object; 3215public PropertyByRefUpdater(LocalDefinition? obj, PropertyInfo property, int argumentIndex) 3249private readonly LocalDefinition? _obj; 3250private readonly LocalDefinition[] _args; 3252public IndexMethodByRefUpdater(LocalDefinition? obj, LocalDefinition[] args, MethodInfo indexer, int argumentIndex)
System\Linq\Expressions\Interpreter\LocalVariables.cs (5)
47internal readonly struct LocalDefinition : IEquatable<LocalDefinition> 59public override bool Equals([NotNullWhen(true)] object? obj) => obj is LocalDefinition other && Equals(other); 61public bool Equals(LocalDefinition other) => other.Index == Index && other.Parameter == Parameter; 73public LocalDefinition DefineLocal(ParameterExpression variable, int start) 94public void UndefineLocal(LocalDefinition definition, int end)