public Dictionary<string, int> FindScopeForVariable(string name) { for (int i = _stack.Count - 1; i >= 0; i--) { if (_stack[i].ContainsKey(name)) { return _stack[i]; } } return null; }