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