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