public override ScopedValue GetScopeKeyOf(string name) { ScopedValue variableKey = null; if (GetVariableType(name) == VariableTypes.Local) { if (Scopes.Count() > 0) { variableKey = new ScopedValue(Scopes.PeekCurrent(), name); } } else { variableKey = new ScopedValue("global", name); } return(variableKey); }
public BaseScopedValueCollection() { _scopedValueDictionary = new Dictionary <ScopedValue, T>(new ScopedValueComparer()); Scopes = new Scopes(); }