13 references to VariableStorageKind
System.Core (13)
Microsoft\Scripting\Compiler\CompilerScope.cs (6)
79internal readonly Dictionary<ParameterExpression, VariableStorageKind> Definitions = new Dictionary<ParameterExpression, VariableStorageKind>(); 116Definitions = new Dictionary<ParameterExpression, VariableStorageKind>(variables.Count); 118Definitions.Add(v, VariableStorageKind.Local); 288var hoistedVars = GetVariables().Where(p => Definitions[p] == VariableStorageKind.Hoisted).ToReadOnly(); 413if (Definitions[v] == VariableStorageKind.Local) {
Microsoft\Scripting\Compiler\VariableBinder.cs (7)
173currentScope.Definitions.Add(v, VariableStorageKind.Local); 184Reference(node, VariableStorageKind.Local); 218Reference(v, VariableStorageKind.Hoisted); 223private void Reference(ParameterExpression node, VariableStorageKind storage) { 232storage = VariableStorageKind.Hoisted; 238if (storage == VariableStorageKind.Hoisted) { 242definition.Definitions[node] = VariableStorageKind.Hoisted;