2 instantiations of VariableScope
System.Linq.Expressions (2)
System\Linq\Expressions\Interpreter\LocalVariables.cs (2)
81
newScope = new
VariableScope
(result, start, existing);
87
newScope = new
VariableScope
(result, start, parent: null);
11 references to VariableScope
System.Linq.Expressions (11)
System\Linq\Expressions\Interpreter\LocalVariables.cs (11)
68
private readonly HybridReferenceDictionary<ParameterExpression,
VariableScope
> _variables = new HybridReferenceDictionary<ParameterExpression,
VariableScope
>();
78
VariableScope
? existing, newScope;
82
existing.ChildScopes ??= new List<
VariableScope
>();
96
VariableScope
scope = _variables[definition.Parameter];
112
VariableScope
scope = _variables[variable];
124
VariableScope
child = scope.ChildScopes[curChild];
139
if (_variables.TryGetValue(var, out
VariableScope
? scope))
174
public readonly
VariableScope
? Parent;
175
public List<
VariableScope
>? ChildScopes;
177
public VariableScope(LocalVariable variable, int start,
VariableScope
? parent)