13 references to VariableStorageKind
System.Linq.Expressions (13)
System\Linq\Expressions\Compiler\CompilerScope.cs (6)
64
internal readonly Dictionary<ParameterExpression,
VariableStorageKind
> Definitions = new Dictionary<ParameterExpression,
VariableStorageKind
>();
102
Definitions = new Dictionary<ParameterExpression,
VariableStorageKind
>(variables.Count);
105
Definitions.Add(v,
VariableStorageKind
.Local);
296
ReadOnlyCollection<ParameterExpression> hoistedVars = GetVariables().Where(p => Definitions[p] ==
VariableStorageKind
.Hoisted).ToReadOnly();
440
if (Definitions[v] ==
VariableStorageKind
.Local)
System\Linq\Expressions\Compiler\VariableBinder.cs (7)
186
currentScope.Definitions.Add(v,
VariableStorageKind
.Local);
197
Reference(node,
VariableStorageKind
.Local);
233
Reference(v,
VariableStorageKind
.Hoisted);
238
private void Reference(ParameterExpression node,
VariableStorageKind
storage)
251
storage =
VariableStorageKind
.Hoisted;
258
if (storage ==
VariableStorageKind
.Hoisted)
264
definition.Definitions[node] =
VariableStorageKind
.Hoisted;