2 instantiations of LocalVariable
System.Linq.Expressions (2)
System\Linq\Expressions\Interpreter\LocalVariables.cs (2)
75
var result = new
LocalVariable
(_localCount++, closure: false);
161
LocalVariable result = new
LocalVariable
(_closureVariables.Count, true);
26 references to LocalVariable
System.Linq.Expressions (26)
System\Linq\Expressions\Interpreter\Interpreter.cs (1)
44
internal Dictionary<ParameterExpression,
LocalVariable
>? ClosureVariables { get; }
System\Linq\Expressions\Interpreter\LightCompiler.cs (10)
378
private
LocalVariable
EnsureAvailableForClosure(ParameterExpression expr)
380
if (_locals.TryGetLocalOrClosure(expr, out
LocalVariable
? local))
399
private
LocalVariable
ResolveLocal(ParameterExpression variable)
401
if (!_locals.TryGetLocalOrClosure(variable, out
LocalVariable
? local))
430
LocalVariable
local = ResolveLocal(variable);
453
LocalVariable
local = ResolveLocal(variable);
470
LocalVariable
local = ResolveLocal(variable);
2775
var mapping = new Dictionary<ParameterExpression,
LocalVariable
>();
3132
private readonly
LocalVariable
_parameter;
3134
public ParameterByRefUpdater(
LocalVariable
parameter, int argumentIndex)
System\Linq\Expressions\Interpreter\LocalVariables.cs (10)
69
private Dictionary<ParameterExpression,
LocalVariable
>? _closureVariables;
75
var
result = new LocalVariable(_localCount++, closure: false);
114
LocalVariable
local = scope.Variable;
137
public bool TryGetLocalOrClosure(ParameterExpression var, [NotNullWhen(true)] out
LocalVariable
? local)
156
internal Dictionary<ParameterExpression,
LocalVariable
>? ClosureVariables => _closureVariables;
158
internal
LocalVariable
AddClosureVariable(ParameterExpression variable)
160
_closureVariables ??= new Dictionary<ParameterExpression,
LocalVariable
>();
161
LocalVariable
result = new LocalVariable(_closureVariables.Count, true);
173
public readonly
LocalVariable
Variable;
177
public VariableScope(
LocalVariable
variable, int start, VariableScope? parent)
System\Linq\Expressions\Interpreter\TypeOperations.cs (5)
468
private readonly Dictionary<ParameterExpression,
LocalVariable
>? _hoistedVariables;
470
public QuoteInstruction(Expression operand, Dictionary<ParameterExpression,
LocalVariable
>? hoistedVariables)
499
private readonly Dictionary<ParameterExpression,
LocalVariable
> _variables;
507
internal ExpressionQuoter(Dictionary<ParameterExpression,
LocalVariable
> hoistedVariables, InterpretedFrame frame)
635
if (_variables.TryGetValue(variable, out
LocalVariable
? var))